scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

commit 1d6e16a79ad65781025b9b582c353477a51d8e5e
parent 34b7ab261fb2a7a0cb0ef90b5602c17263004551
Author: gearsix <gearsix@tuta.io>
Date:   Wed, 12 Aug 2020 11:03:14 +0100

minor fix in git-cfg

Diffstat:
Msrc/git-cfg.sh | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/git-cfg.sh b/src/git-cfg.sh @@ -4,15 +4,16 @@ # ARGUMENTS: -g, --global = "git config --global ..." global=0 -username=$1 -useremail=$2 -shift -shift - if [[ $1 == "--global" || $1 == "-g" ]]; then global=1 + shift fi +username=$1 +shift +useremail=$2 +shift + if [[ $global -eq 1 ]]; then git config --global user.name "$username" git config --global user.email "$useremail"