Skip to content

Commit

Permalink
Merged hotfix/ultimatebyte-0308 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Mar 8, 2017
2 parents fea406c + e5b7737 commit d439c99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lgsm/functions/core_getopt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -186,4 +186,4 @@ done
echo -e "${red}Unknown command${default}: $0 ${getopt}"
exitcode=2
fn_opt_usage
core_exit.sh
core_exit.sh

0 comments on commit d439c99

Please sign in to comment.