add raw end raw back

This commit is contained in:
m0duspwnens
2022-01-24 16:09:15 -05:00
parent 268e07e2a2
commit e3f1b456e6
2 changed files with 8 additions and 0 deletions

View File

@@ -517,6 +517,8 @@ valid_int() {
[[ $num =~ ^[0-9]*$ ]] && [[ $num -ge $min ]] && [[ $num -le $max ]] && return 0 || return 1
}
# {% raw %}
valid_proxy() {
local proxy=$1
local url_prefixes=( 'http://' 'https://' )
@@ -559,6 +561,8 @@ valid_string() {
echo "$str" | grep -qP '^\S+$' && [[ ${#str} -ge $min_length ]] && [[ ${#str} -le $max_length ]] && return 0 || return 1
}
# {% endraw %}
valid_username() {
local user=$1

View File

@@ -195,6 +195,8 @@ check_airgap() {
fi
}
# {% raw %}
check_local_mods() {
local salt_local=/opt/so/saltstack/local
@@ -222,6 +224,8 @@ check_local_mods() {
fi
}
# {% endraw %}
check_pillar_items() {
local pillar_output=$(salt-call pillar.items --out=json)