1
0
Fork 0

Don't fail on git config --get unset

main
Mari 5 years ago committed by GitHub
parent 646085c3f4
commit f6f1b643ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      new-host.sh

@ -29,8 +29,8 @@ if [[ "$ORIGIN" != 'git@github.com:programmablereya/common-configs.git' ]]; then
git remote set-url origin git@github.com:programmablereya/common-configs.git git remote set-url origin git@github.com:programmablereya/common-configs.git
fi fi
GITMAIL=$(git config user.email) GITMAIL=$(git config --get user.email || true)
GITUSER=$(git config user.name) GITUSER=$(git config --get user.name || true)
if [[ "$GITMAIL" != 'mstaib.git@reya.zone' ]] || [[ "$GITUSER" != 'Mari' ]]; then if [[ "$GITMAIL" != 'mstaib.git@reya.zone' ]] || [[ "$GITUSER" != 'Mari' ]]; then
git config user.email 'mstaib.git@reya.zone' git config user.email 'mstaib.git@reya.zone'
git config user.name 'Mari' git config user.name 'Mari'

Loading…
Cancel
Save