diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-07-04 09:37:20 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-07-04 09:37:20 +0200 |
commit | b28dab49bd8df92aecf3eb458a94f8e8989b18e0 (patch) | |
tree | 9ce58bcd815a0ae314e063e796fbf9c065f280d0 /git-synk | |
parent | 409b66964261460909e68a715b839d205d931610 (diff) | |
download | bin-b28dab49bd8df92aecf3eb458a94f8e8989b18e0.zip bin-b28dab49bd8df92aecf3eb458a94f8e8989b18e0.tar.gz |
git-synk: add arguments
Diffstat (limited to 'git-synk')
-rwxr-xr-x | git-synk | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,7 +1,10 @@ #! /bin/sh +if [ $# -gt 0 ]; then GIT_REMOTE=$1; shift; fi +if [ $# -gt 0 ]; then GIT_BRANCH=$1; shift; fi + GIT_BASE=${GIT_BASE:-$HOME/usr/git} -GIT_REMOTE=${GIT_REMOTE:-asynk} +GIT_REMOTE=${GIT_REMOTE:-origin} GIT_BRANCH=${GIT_BRANCH:-master} RESET="\033[0m" |