diff --git a/deploy/git-guard.sh b/deploy/git-guard.sh index 0426ce1..7b629c8 100644 --- a/deploy/git-guard.sh +++ b/deploy/git-guard.sh @@ -218,7 +218,7 @@ if [ "$DIRTY" -eq 1 ]; then echo "==> Resync succeeded. Reapplying stashed changes..." if git stash pop; then echo "==> Stash reapplied cleanly. Re-checking sync state..." - exec "$0" "$@" + exec bash "$0" "$@" else echo "ERROR: 'git stash pop' did not complete successfully." echo @@ -308,7 +308,7 @@ if [ "$DIRTY" -eq 1 ]; then if git push origin main; then echo "==> Pushed. Re-checking sync state..." - exec "$0" "$@" + exec bash "$0" "$@" else echo "ERROR: push failed (likely diverged from origin). Aborting deploy." echo "Run:"