projects
/
cmccabe-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9374e89
)
git-identity.sh: improve usage
author
Colin Patrick Mccabe
<cmccabe@alumni.cmu.edu>
Tue, 14 Feb 2012 16:12:14 +0000 (08:12 -0800)
committer
Colin Patrick Mccabe
<cmccabe@alumni.cmu.edu>
Tue, 14 Feb 2012 16:12:14 +0000 (08:12 -0800)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>
git-identity.sh
patch
|
blob
|
history
diff --git
a/git-identity.sh
b/git-identity.sh
index
5c4c0f1
..
07cf63d
100755
(executable)
--- a/
git-identity.sh
+++ b/
git-identity.sh
@@
-11,7
+11,9
@@
die() {
exit 1
}
-[ $# -eq 1 ] || die "You must supply one argument: work or priv"
+USAGE="You must supply one argument: work or priv"
+
+[ $# -eq 1 ] || die "${USAGE}"
case $1 in
work)
git config user.email cmccabe@cloudera.com --file || die "${LINENO}"
@@
-22,7
+24,7
@@
case $1 in
git config user.name "Colin Patrick Mccabe" --file || die "${LINENO}"
;;
*)
- die "logic error"
+ die "${USAGE}"
;;
esac