|
@@ -62,30 +62,13 @@ sibling=$(find -maxdepth 1 -type d -name "[^.]*" | sort | head -1)
|
62
|
62
|
test -f $sibling_conf && sibling=$(cat $sibling_conf)
|
63
|
63
|
remote_name="origin"
|
64
|
64
|
|
65
|
|
-while true;
|
66
|
|
-do
|
67
|
|
- case $1 in
|
68
|
|
- -r|--remote-name)
|
69
|
|
- remote_name=$2
|
70
|
|
- shift 2
|
71
|
|
- ;;
|
72
|
|
- -s|--sibling)
|
73
|
|
- sibling=$2
|
74
|
|
- shift 2
|
75
|
|
- ;;
|
76
|
|
- -v|--verbose)
|
77
|
|
- verbose=true
|
78
|
|
- shift
|
79
|
|
- ;;
|
80
|
|
- "")
|
81
|
|
- break
|
82
|
|
- ;;
|
83
|
|
- *)
|
84
|
|
- project=$1
|
85
|
|
- shift
|
86
|
|
- ;;
|
87
|
|
- esac
|
88
|
|
-done
|
|
65
|
+while true; do case $1 in
|
|
66
|
+ -r|--remote-name) remote_name=$2; shift 2 ;;
|
|
67
|
+ -s|--sibling) sibling=$2; shift 2 ;;
|
|
68
|
+ -v|--verbose) verbose=true; shift ;;
|
|
69
|
+ "") break ;;
|
|
70
|
+ *) project=$1; shift ;;
|
|
71
|
+esac done
|
89
|
72
|
|
90
|
73
|
test -n "$project" || usage
|
91
|
74
|
test -n "$sibling" || die "could not find older sibling"
|