From 5f7c8356dee64b760b18d3e1dfb7f7dcef1fb85f Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 5 Aug 2014 09:48:14 +0200 Subject: [PATCH] Add missing shift to make language for loop workable Change-Id: I0787bf3020e6ccbee5f2ff11cd184e2c115c0239 --- bin/doc-tools-check-languages | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/doc-tools-check-languages b/bin/doc-tools-check-languages index e43499b3..93335073 100755 --- a/bin/doc-tools-check-languages +++ b/bin/doc-tools-check-languages @@ -75,6 +75,7 @@ function usage { CONF_FILE=$1 +shift if [[ -z $CONF_FILE ]]; then usage @@ -94,9 +95,9 @@ if [[ -z $(declare -p BOOKS 2> /dev/null | grep 'declare -A BOOKS') || \ exit 1 fi -case "$2" in +case "$1" in test|publish) - PURPOSE=$2 + PURPOSE=$1 shift ;; *)