parameter
Check for parameters improved to accept values containing equal signs.
This commit is contained in:
parent
b1f0594c0f
commit
10bb7b7977
1 changed files with 1 additions and 1 deletions
|
@ -639,7 +639,7 @@ check_for_parameters() {
|
|||
local check=$(echo "${arg}" | cut -c-1)
|
||||
local arg=${arg:1}
|
||||
local par=$(echo "${arg}" | cut -d'=' -f 1 -s)
|
||||
local val=$(echo "${arg}" | cut -d'=' -f 2 -s)
|
||||
local val=$(echo "${arg}" | cut -d'=' -f 2- -s)
|
||||
[[ -z $par ]] && par=$arg
|
||||
[[ -z $val ]] && val=true
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue