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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue