Fixed logic error in i18n-gen Script:

Check for correct #argument size before working on them
This commit is contained in:
David Tiersch 2014-08-09 13:44:50 +02:00
parent a9f4fa95e6
commit b894a46800
No known key found for this signature in database
GPG Key ID: 9DCBE324D22515C1

View File

@ -34,13 +34,13 @@ function gen_pot() {
xgettext --language=Python --keyword=_ --output=${ROOT}i18n/glances.pot `find ${ROOT}glances/ -name "*.py"` xgettext --language=Python --keyword=_ --output=${ROOT}i18n/glances.pot `find ${ROOT}glances/ -name "*.py"`
} }
OPERATION="$1" if [ $# != 2 ]; then
shift
if [ -z "$1" ]; then
usage usage
fi fi
OPERATION="$1"
shift
case "$OPERATION" in case "$OPERATION" in
init) init)
# If there is already a language file for specified language there is no need to generate a new one # If there is already a language file for specified language there is no need to generate a new one