diff --git a/.git-switch-user b/.git-switch-user index ad71dd0..526b9d0 100755 --- a/.git-switch-user +++ b/.git-switch-user @@ -1,7 +1,5 @@ -#!/bin/bash -profile=$1 -name=$(git config -f ~/.git.d/$profile --get user.name ) -email=$(git config -f ~/.git.d/$profile --get user.email ) -echo "profile = $profile name = $name email = $email" +name=$(git config -f ~/.git.d/$1 --get user.name ) +email=$(git config -f ~/.git.d/$1 --get user.email ) +echo "profile = $1 name = $name email = $email" git config user.name = $name git config user.email = $email