Add missing shift to make language for loop workable
Change-Id: I0787bf3020e6ccbee5f2ff11cd184e2c115c0239
This commit is contained in:
parent
2e55d768ba
commit
5f7c8356de
|
@ -75,6 +75,7 @@ function usage {
|
||||||
|
|
||||||
|
|
||||||
CONF_FILE=$1
|
CONF_FILE=$1
|
||||||
|
shift
|
||||||
|
|
||||||
if [[ -z $CONF_FILE ]]; then
|
if [[ -z $CONF_FILE ]]; then
|
||||||
usage
|
usage
|
||||||
|
@ -94,9 +95,9 @@ if [[ -z $(declare -p BOOKS 2> /dev/null | grep 'declare -A BOOKS') || \
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$2" in
|
case "$1" in
|
||||||
test|publish)
|
test|publish)
|
||||||
PURPOSE=$2
|
PURPOSE=$1
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in New Issue