Skip to content

Commit

Permalink
Simplified the assignment of a default branch value.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed May 28, 2014
1 parent d6f2d77 commit 404eac6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/gp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
# Run in a clean directory passing in a GitHub org and repo name
org=$1
repo=$2
branch=$3
: ${branch:="master"} # default to master when branch isn't specified
branch=${3:-"master"} # default to master when branch isn't specified

# make folder (same as input, no checking!)
mkdir $repo
Expand Down

0 comments on commit 404eac6

Please sign in to comment.