File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ PACKAGE_RESOLVED_PATH="Package.resolved"
2323
2424# Check if the Package.resolved file exists
2525if [[ ! -f " $PACKAGE_RESOLVED_PATH " ]]; then
26- echo " Error: $PACKAGE_RESOLVED_PATH file not found!"
26+ echo " Error: $PACKAGE_RESOLVED_PATH file not found!" >&2
2727 exit 1
2828fi
2929
@@ -36,7 +36,7 @@ REVISION=$(jq -r --arg name "$DEPENDENCY_NAME" '
3636
3737# Check if a revision was found
3838if [[ -z " $REVISION " ]]; then
39- echo " No revision found for dependency: $DEPENDENCY_NAME "
39+ echo " No revision found for dependency: $DEPENDENCY_NAME " >&2
4040 exit 1
4141else
4242 echo " $REVISION "
Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ clone_checkout_rb() {
2121 git stash --quiet || true
2222 git reset --hard --quiet origin/main
2323 fi
24- git checkout --quiet $revision
24+ if [ -n " $revision " ]; then
25+ git checkout --quiet " $revision "
26+ else
27+ echo " No pinned revision for DarwinPrivateFrameworks, using default branch."
28+ fi
2529}
2630
2731update_rb () {
You can’t perform that action at this time.
0 commit comments