mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-25 15:00:44 +01:00
template: Treat ampersand literally
This commit is contained in:
@@ -54,7 +54,7 @@ get_arg_name() {
|
||||
|
||||
parse_arg_value() {
|
||||
# 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() {
|
||||
|
||||
Reference in New Issue
Block a user