mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 18:52:52 +01:00
Move the jinja endraw directive below is_tty
This will prevent jninja from interpreting the shell string length expansion as the start of jninja comments
This commit is contained in:
@@ -285,8 +285,6 @@ main() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# {% endraw %}
|
|
||||||
|
|
||||||
is_tty() {
|
is_tty() {
|
||||||
__tty=0
|
__tty=0
|
||||||
[ -t 1 ] && __tty=1
|
[ -t 1 ] && __tty=1
|
||||||
@@ -294,6 +292,8 @@ is_tty() {
|
|||||||
[ "${#NO_COLOR}" -ne 0 ] && __tty=0
|
[ "${#NO_COLOR}" -ne 0 ] && __tty=0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# {% endraw %}
|
||||||
|
|
||||||
if ! [ "$(id -u)" = 0 ]; then
|
if ! [ "$(id -u)" = 0 ]; then
|
||||||
echo "${0}: This command must be run as root"
|
echo "${0}: This command must be run as root"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user