Skip to content

Commit

Permalink
Fixed logic error in i18n-gen Script:
Browse files Browse the repository at this point in the history
Check for correct #argument size before working on them
  • Loading branch information
David Tiersch committed Aug 9, 2014
1 parent a9f4fa9 commit b894a46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions i18n-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function gen_pot() {
xgettext --language=Python --keyword=_ --output=${ROOT}i18n/glances.pot `find ${ROOT}glances/ -name "*.py"`
}

OPERATION="$1"
shift

if [ -z "$1" ]; then
if [ $# != 2 ]; then
usage
fi

OPERATION="$1"
shift

case "$OPERATION" in
init)
# If there is already a language file for specified language there is no need to generate a new one
Expand Down

0 comments on commit b894a46

Please sign in to comment.