diff --git a/github-create b/github-create index e2ed3d3..5f99a2d 100644 --- a/github-create +++ b/github-create @@ -1,8 +1,8 @@ github-create() { - repo_name=$1 + local repo_name=$1 - dir_name=`basename $(pwd)` - invalid_credentials=0 + local dir_name=`basename $(pwd)` + local invalid_credentials=0 if [ "$repo_name" = "" ]; then echo " Repo name (hit enter to use '$dir_name')?" @@ -13,15 +13,15 @@ github-create() { repo_name=$dir_name fi - username=`git config github.user` + local username=`git config github.user` if [ "$username" = "" ]; then echo " Could not find username, run 'git config --global github.user '" invalid_credentials=1 fi - token=`git config github.token` + local token=`git config github.token` if [ "$token" = "" ]; then - echo " Could not find token, run 'git config --global github.token '" + echo " Could not find token, run 'mkdir -p ~/.config/git; git config --file ~/.config/git/config github.token '" invalid_credentials=1 fi