binaries and interactive variables are readonly

This commit is contained in:
Jérémy Lecour 2019-03-10 19:06:59 +01:00
parent 0514663977
commit 90e3bc188f

View file

@ -349,7 +349,10 @@ USER=$(logname)
PATH=${PATH}:/usr/sbin
SENDMAIL_BIN=$(command -v sendmail)
readonly SENDMAIL_BIN
GIT_BIN=$(command -v git)
readonly GIT_BIN
GIT_REPOSITORIES="/etc /etc/bind"
@ -374,6 +377,7 @@ if [ -t 0 ]; then
else
INTERACTIVE=0
fi
readonly INTERACTIVE
if [ -z "${MESSAGE}" ] && [ "${INTERACTIVE}" = "1" ]; then
# get input from stdin