diff options
-rwxr-xr-x | firma | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -340,6 +340,16 @@ EOF # main - umask 0777 +export LANG=en_US +USED_ARRAYS="MESSAGE GPG_MESSAGE LIST_MESSAGE" + +# declare all vars +declare n +for array in $USED_ARRAYS; do + declare -a $array +done + +export LANG=en_US # command line checking if [ -z "$2" -a "$1" != "-c" -a "$1" != "-h" -a "$1" != "-v" ]; then @@ -361,14 +371,6 @@ if [ "$1" != "-c" -a "$1" != "-h" -a "$1" != "-v" ]; then fi fi -# declare all vars -declare n -for array in MESSAGE GPG_MESSAGE LIST_MESSAGE; do - declare -a $array -done - -export LANG=en_US - # get gpg parameters and check the config if [ "$1" = "-a" -o "$1" = "-p" -o "$1" = "-r" ]; then gpg_args @@ -407,4 +409,8 @@ else exit 1 fi -unset MESSAGE; unset GPG_MESSAGE; unset LIST_MESSAGE +# un-declare all vars +declare n +for array in $USED_ARRAYS; do + unset $array +done |