Skip to content

Commit

Permalink
Fix error in --arkopt,-optname
Browse files Browse the repository at this point in the history
This should fix #1211
  • Loading branch information
klightspeed committed Jan 5, 2022
1 parent 996983d commit 0aee12d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/arkmanager
Expand Up @@ -3679,13 +3679,14 @@ addArkOpt() {
local optname="${1%%=*}"
local optval="${1#*=}"
local optdash="${optname:0:1}"
if [[ "${optval}" == "${1}" ]]; then
optval=""
fi
optname="${optname#-}"
optname="${optname//[^A-Za-z0-9_]/_}"
if [[ "${optval}" == "${optname}" ]]; then
optval=""
fi
if [[ "${optdash}" == "-" ]]; then
if [[ -z "${optval}" ]]; then
IFS="" read -r "arkflag_${optname}" <<<"true"
Expand Down

0 comments on commit 0aee12d

Please sign in to comment.