forked from ungleich-public/cdist
Escape inner variable
ret was being set and checked in generated code but the $ wasn't being escaped
This commit is contained in:
parent
629f751726
commit
269b9eff84
1 changed files with 1 additions and 4 deletions
|
@ -47,12 +47,9 @@ elif [ -f "${rcvar}.new" ]; then # rcvar.new exists, we must need to apply it
|
||||||
# Cleanup
|
# Cleanup
|
||||||
# This file shouldn't exist, but just in case
|
# This file shouldn't exist, but just in case
|
||||||
rm -f "${rcvar}.old"
|
rm -f "${rcvar}.old"
|
||||||
if [ "$ret" -ne "0" ]; then # failed to configure new ruleset
|
if [ "\$ret" -ne "0" ]; then # failed to configure new ruleset
|
||||||
echo "Failed to configure the new ruleset on ${__target_host}!" >&2
|
echo "Failed to configure the new ruleset on ${__target_host}!" >&2
|
||||||
fi
|
fi
|
||||||
else # neither ${rcvar}.old nor ${rcvar}.new exist? error.
|
|
||||||
echo "Neither ${rcvar}.old nor ${rcvar}.new exist! Something is wrong." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue