Skip to content

Commit

Permalink
Fix ==, should be =
Browse files Browse the repository at this point in the history
Oops. I always forget shell doesn't use == in condition.
  • Loading branch information
aormsby committed Dec 23, 2020
1 parent a0e76c8 commit c86999d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upstream-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ config_git() {

# reset user credentials to originals
reset_git() {
if [ "${ORIG_USER}" == "null" ]; then
if [ "${ORIG_USER}" = "null" ]; then
git config --global --unset user.name
else
git config --global user.name "${ORIG_USER}"
fi

if [ "${ORIG_EMAIL}" == "null" ]; then
if [ "${ORIG_EMAIL}" = "null" ]; then
git config --global --unset user.email
else
git config --global user.email "${ORIG_EMAIL}"
fi

if [ "${ORIG_PULL_CONFIG}" == "null" ]; then
if [ "${ORIG_PULL_CONFIG}" = "null" ]; then
git config --global --unset pull.rebase
else
git config --global pull.rebase "${ORIG_PULL_CONFIG}"
Expand Down

0 comments on commit c86999d

Please sign in to comment.