From 42df908c65dffacd50953ca44c261e7f5fb3e243 Mon Sep 17 00:00:00 2001 From: Ludovic Perrine Date: Thu, 2 Oct 2014 12:13:09 +0200 Subject: [PATCH] Fixed key format check --- plugins/config/commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/config/commands b/plugins/config/commands index d5c0278a4..f2f38f136 100755 --- a/plugins/config/commands +++ b/plugins/config/commands @@ -123,7 +123,7 @@ case "$1" in KEY=`echo ${var} | cut -d"=" -f1` VALUE=`echo ${var} | cut -d"=" -f2-` - if [[ $KEY == [a-zA-Z_][a-zA-Z0-9_]* ]]; then + if [[ $KEY =~ [a-zA-Z_][a-zA-Z0-9_]* ]]; then RESTART_APP=true ENV_TEMP=$(echo -e "${ENV_TEMP}" | sed "/^export $KEY=/ d") ENV_TEMP="${ENV_TEMP}\nexport ${var}"