Correct argument amount check
--notor should not be counted in it.
This commit is contained in:
parent
c25f99e1c8
commit
b911a03848
1 changed files with 5 additions and 5 deletions
|
@ -17,17 +17,17 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
|
||||||
if [[ $# -lt 3 ]]; then
|
|
||||||
echo "Usage: $0 [--notor] <workdir> <leader> <follower...>"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
tor=true
|
tor=true
|
||||||
if [[ "$1" == "--notor" ]]; then
|
if [[ "$1" == "--notor" ]]; then
|
||||||
tor=false
|
tor=false
|
||||||
shift 1
|
shift 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $# -lt 3 ]]; then
|
||||||
|
echo "Usage: $0 [--notor] <workdir> <leader> <follower...>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cd "$1"
|
cd "$1"
|
||||||
|
|
||||||
leader="$2"
|
leader="$2"
|
||||||
|
|
Loading…
Reference in a new issue