mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-03 19:23:42 +01:00
template: Treat ampersand literally
This commit is contained in:
@@ -54,7 +54,7 @@ get_arg_name() {
|
|||||||
|
|
||||||
parse_arg_value() {
|
parse_arg_value() {
|
||||||
# Parses the value after = and then escapes back/forward slashes and single quotes in it. -- cwells
|
# Parses the value after = and then escapes back/forward slashes and single quotes in it. -- cwells
|
||||||
echo "${1}" | sed -E 's/[^=]+=?//' | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/'\''/'\''\\'\'\''/g' -e 's/\\\&/\&/g'
|
echo "${1}" | sed -E 's/[^=]+=?//' | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/'\''/'\''\\'\'\''/g' -e 's/&/\\&/g'
|
||||||
}
|
}
|
||||||
|
|
||||||
get_arg_value() {
|
get_arg_value() {
|
||||||
|
|||||||
Reference in New Issue
Block a user