diff --git a/new-host.sh b/new-host.sh index 8e81106..74f2159 100644 --- a/new-host.sh +++ b/new-host.sh @@ -27,6 +27,13 @@ fi ORIGIN=$(git ls-remote --get-url origin) if [[ "$ORIGIN" != 'git@github.com:programmablereya/common-configs.git' ]]; then git remote set-url origin git@github.com:programmablereya/common-configs.git +fi - sync_git_only +GITMAIL=$(git config user.email) +GITUSER=$(git config user.name) +if [[ "$GITMAIL" != 'mstaib.git@reya.zone' ]] || [[ "$GITUSER" != 'Mari' ]]; then + git config user.email 'mstaib.git@reya.zone' + git config user.name 'Mari' fi + +sync_git_only