mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-24 13:23:12 +03:00
Fixed logic error in i18n-gen Script:
Check for correct #argument size before working on them
This commit is contained in:
parent
a9f4fa95e6
commit
b894a46800
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user