summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Hennion <nicolashennion@gmail.com>2014-08-09 15:25:15 +0200
committerNicolas Hennion <nicolashennion@gmail.com>2014-08-09 15:25:15 +0200
commitc26a7703d53f4f28f9115b784c4a249b9dd4b9ec (patch)
tree96689214f5d270642c4fd6e95d0d6fec8e4f6052
parenta9f4fa95e6d071f7de002033efa68ed7f152b1c6 (diff)
parentb894a46800fa96f91435e676608f86472c8e21c6 (diff)
Merge pull request #404 from dtiersch/i18n-gen-fix
Fixed logic error in i18n-gen Script:
-rwxr-xr-xi18n-gen.sh8
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