Index: git-crup |
=================================================================== |
--- git-crup (revision 149323) |
+++ git-crup (working copy) |
@@ -42,13 +42,22 @@ |
while test $# -ne 0; do |
case "$1" in |
+ -j[0-9]*) |
+ j=$(echo "$1" | cut -c3-) |
+ ;; |
+ --jobs=[0-9]*) |
+ j=$(echo "$1" | cut -c8-) |
+ ;; |
cmp
2012/08/02 17:21:53
increase indent on lines 49-50 by 1 space
szager
2012/08/02 17:23:50
Done.
|
-j|--jobs) |
- if test -n "$2"; then |
- j="$2" |
- shift |
- else |
- j=0 |
- fi |
+ case "$2" in |
+ ''|-*) |
+ j=0 |
+ ;; |
+ *) |
+ j="$2" |
+ shift |
+ ;; |
+ esac |
;; |
-n|--dry-run) |
ECHO=echo |