Skip to content

Commit d439c99

Browse files
committed
Merged hotfix/ultimatebyte-0308 into master
2 parents fea406c + e5b7737 commit d439c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lgsm/functions/core_getopt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ for i in "${optcommands[@]}"; do
173173
for ((currcmdindex=1; currcmdindex <= ${currcmdamount}; currcmdindex++)); do
174174
if [ "$(echo "${currentopt[index]}"| awk -F ';' -v x=${currcmdindex} '{ print $x }')" == "${getopt}" ]; then
175175
# Run command
176-
${currentopt[index+1]}
176+
eval ${currentopt[index+1]}
177177
core_exit.sh
178178
break
179179
fi
@@ -186,4 +186,4 @@ done
186186
echo -e "${red}Unknown command${default}: $0 ${getopt}"
187187
exitcode=2
188188
fn_opt_usage
189-
core_exit.sh
189+
core_exit.sh

0 commit comments

Comments
 (0)