From 2666dbcf6523fe850000294e81244e2109838e9c Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jan 21 2011 20:28:50 +0000 Subject: Update `locale' functionality: - Fix command-line argument interpretation. Previous to this commit the --filter option doesn't work. Now, it does work. --- diff --git a/Scripts/Bash/Functions/Locale/locale_doMessagesStatus.sh b/Scripts/Bash/Functions/Locale/locale_doMessagesStatus.sh index 86f0544..22494fc 100755 --- a/Scripts/Bash/Functions/Locale/locale_doMessagesStatus.sh +++ b/Scripts/Bash/Functions/Locale/locale_doMessagesStatus.sh @@ -71,7 +71,7 @@ function locale_doMessagesStatus { echo "$LOCALECODE | $LANG_NAME | $LANG_COUNTRY | $PO_STATUS | $PO_REVDATE | $PO_LASTAUTHOR" done \ - | egrep -i $FLAG_FILTER \ + | egrep -i "$FLAG_FILTER" \ | awk 'BEGIN {FS="|"; format ="%7s\t%-15s\t%-15s\t%-12s\t%-12s\t%-s\n" printf "--------------------------------------------------------------------------------\n" printf format, "'`gettext "Code"`'", " '`gettext "Language"`'", " '`gettext "Country"`'",\ diff --git a/Scripts/Bash/Functions/Locale/locale_getActions.sh b/Scripts/Bash/Functions/Locale/locale_getActions.sh index bb41982..9b8f4c2 100644 --- a/Scripts/Bash/Functions/Locale/locale_getActions.sh +++ b/Scripts/Bash/Functions/Locale/locale_getActions.sh @@ -52,7 +52,7 @@ function locale_getActions { # verify here. # Break while loop. - break + shift 1 ;; --edit ) @@ -71,7 +71,7 @@ function locale_getActions { fi # Break while loop. - break + shift 1 ;; --filter )