Skip to content

Commit fdc0db0

Browse files
committed
Fix crash when FORCE_PUSH is not set
1 parent 51669f8 commit fdc0db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ sh -c "git config --global core.askPass /cred-helper.sh"
3131
sh -c "git config --global credential.helper cache"
3232
sh -c "git remote add mirror $*"
3333
sh -c "echo pushing to $branch branch at $(git remote get-url --push mirror)"
34-
if [ "$FORCE_PUSH" = "true" ]
34+
if [ "${FORCE_PUSH:-}" = "true" ]
3535
then
3636
sh -c "git push --force mirror $branch"
3737
else

0 commit comments

Comments
 (0)