Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions github-create
Original file line number Diff line number Diff line change
@@ -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')?"
Expand All @@ -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 <username>'"
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 <token>'"
echo " Could not find token, run 'mkdir -p ~/.config/git; git config --file ~/.config/git/config github.token <token>'"
invalid_credentials=1
fi

Expand Down