We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fea406c + e5b7737 commit d439c99Copy full SHA for d439c99
lgsm/functions/core_getopt.sh
@@ -173,7 +173,7 @@ for i in "${optcommands[@]}"; do
173
for ((currcmdindex=1; currcmdindex <= ${currcmdamount}; currcmdindex++)); do
174
if [ "$(echo "${currentopt[index]}"| awk -F ';' -v x=${currcmdindex} '{ print $x }')" == "${getopt}" ]; then
175
# Run command
176
- ${currentopt[index+1]}
+ eval ${currentopt[index+1]}
177
core_exit.sh
178
break
179
fi
@@ -186,4 +186,4 @@ done
186
echo -e "${red}Unknown command${default}: $0 ${getopt}"
187
exitcode=2
188
fn_opt_usage
189
-core_exit.sh
+core_exit.sh
0 commit comments