Skip to content

Commit 871fb56

Browse files
authored
Merge pull request SvanBoxel#15 from Karlinator/master
Fix crash when the FORCE_PUSH variable is not set
2 parents 52a76a6 + 15b7763 commit 871fb56

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)