Fix comparison in deploy.sh

This is not perl, so -ne does _arithmetic_ comparison, not string. And
since that is in an if, it does not break the script…
master
LEdoian 3 years ago
parent 49c5c319c4
commit 3fc9805219

@ -26,7 +26,7 @@ fi
currentbranch="$(git branch --format '%(refname:short)')" currentbranch="$(git branch --format '%(refname:short)')"
# If we are not on target branch, switch and run again # If we are not on target branch, switch and run again
if test "$currentbranch" -ne "$branch"; then if test "$currentbranch" '!=' "$branch"; then
exec /bin/sh -eu "git checkout $branch && exec $0" exec /bin/sh -eu "git checkout $branch && exec $0"
fi fi

Loading…
Cancel
Save