parameter

Check for parameters improved to accept values containing equal signs.
This commit is contained in:
Cristhian Martínez Ochoa 2022-12-26 12:31:39 -07:00
parent b1f0594c0f
commit 10bb7b7977

View file

@ -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