binaries and interactive variables are readonly
This commit is contained in:
parent
0514663977
commit
90e3bc188f
|
@ -349,7 +349,10 @@ USER=$(logname)
|
||||||
PATH=${PATH}:/usr/sbin
|
PATH=${PATH}:/usr/sbin
|
||||||
|
|
||||||
SENDMAIL_BIN=$(command -v sendmail)
|
SENDMAIL_BIN=$(command -v sendmail)
|
||||||
|
readonly SENDMAIL_BIN
|
||||||
|
|
||||||
GIT_BIN=$(command -v git)
|
GIT_BIN=$(command -v git)
|
||||||
|
readonly GIT_BIN
|
||||||
|
|
||||||
GIT_REPOSITORIES="/etc /etc/bind"
|
GIT_REPOSITORIES="/etc /etc/bind"
|
||||||
|
|
||||||
|
@ -374,6 +377,7 @@ if [ -t 0 ]; then
|
||||||
else
|
else
|
||||||
INTERACTIVE=0
|
INTERACTIVE=0
|
||||||
fi
|
fi
|
||||||
|
readonly INTERACTIVE
|
||||||
|
|
||||||
if [ -z "${MESSAGE}" ] && [ "${INTERACTIVE}" = "1" ]; then
|
if [ -z "${MESSAGE}" ] && [ "${INTERACTIVE}" = "1" ]; then
|
||||||
# get input from stdin
|
# get input from stdin
|
||||||
|
|
Loading…
Reference in a new issue