mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-30 19:40:51 +01:00
Merge pull request #1379 from BastilleBSD/tschettervictor-patch-2
This commit is contained in:
@@ -70,7 +70,7 @@ parse_arg_value() {
|
||||
local arg="${1}"
|
||||
|
||||
# Parses the value after = and then escapes back/forward slashes and single quotes in it. -- cwells
|
||||
echo "${arg}" | sed -E 's/[^=]+=?//' | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/'\''/'\''\\'\'\''/g' -e 's/&/\\&/g' -e 's/"//g'
|
||||
eval echo "${arg}" | sed -E 's/[^=]+=?//' | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/'\''/'\''\\'\'\''/g' -e 's/&/\\&/g' -e 's/"//g'
|
||||
}
|
||||
|
||||
get_arg_value() {
|
||||
|
||||
Reference in New Issue
Block a user