diff options
author | Nicolas Hennion <nicolashennion@gmail.com> | 2014-08-09 15:25:15 +0200 |
---|---|---|
committer | Nicolas Hennion <nicolashennion@gmail.com> | 2014-08-09 15:25:15 +0200 |
commit | c26a7703d53f4f28f9115b784c4a249b9dd4b9ec (patch) | |
tree | 96689214f5d270642c4fd6e95d0d6fec8e4f6052 | |
parent | a9f4fa95e6d071f7de002033efa68ed7f152b1c6 (diff) | |
parent | b894a46800fa96f91435e676608f86472c8e21c6 (diff) |
Merge pull request #404 from dtiersch/i18n-gen-fix
Fixed logic error in i18n-gen Script:
-rwxr-xr-x | i18n-gen.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/i18n-gen.sh b/i18n-gen.sh index c55fdd5f..a530281e 100755 --- a/i18n-gen.sh +++ b/i18n-gen.sh @@ -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 |