Просмотр исходного кода

Merged hotfix/ultimatebyte-0308 into master

Daniel Gibbs 9 лет назад
Родитель
Сommit
d439c99d6f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lgsm/functions/core_getopt.sh

+ 2 - 2
lgsm/functions/core_getopt.sh

@@ -173,7 +173,7 @@ for i in "${optcommands[@]}"; do
 			for ((currcmdindex=1; currcmdindex <= ${currcmdamount}; currcmdindex++)); do
 				if [ "$(echo "${currentopt[index]}"| awk -F ';' -v x=${currcmdindex} '{ print $x }')" == "${getopt}" ]; then
 					# Run command
-					${currentopt[index+1]}
+					eval ${currentopt[index+1]}
 					core_exit.sh
 					break
 				fi
@@ -186,4 +186,4 @@ done
 echo -e "${red}Unknown command${default}: $0 ${getopt}"
 exitcode=2
 fn_opt_usage
-core_exit.sh
+core_exit.sh