recursive install == bad

This commit is contained in:
Tj Holowaychuk 2011-05-19 14:53:54 -07:00
parent 2847dacabf
commit 50169613f7

View file

@ -13,10 +13,15 @@ update() {
&& echo "... updated git-extras $VERSION -> $(git extras --version)"
}
test "$INSTALL" = "y" && update && exit
case "$1" in
-v|--version) echo $VERSION && exit 0 ;;
update) update ;;
*) man git-extras ;;
-v|--version)
echo $VERSION && exit 0
;;
update)
update
;;
*)
test "$INSTALL" = "y" && update && exit
man git-extras
;;
esac