mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
If an error happened, just abort, there is no reason to ask user to press enter
This commit is contained in:
parent
eef931443d
commit
51fe2104bb
@ -37,11 +37,6 @@ usage() {
|
||||
echo " -u: Do not upload snapshots"
|
||||
}
|
||||
|
||||
# Use an env var to let build.sh know we are running build_snapshots.sh
|
||||
# This will avoid build.sh to run in interactive mode and wait a key
|
||||
# to be pressed when something goes wrong
|
||||
export NOT_INTERACTIVE=1
|
||||
|
||||
export BUILDER_TOOLS=$(realpath $(dirname ${0}))
|
||||
export BUILDER_ROOT=$(realpath "${BUILDER_TOOLS}/..")
|
||||
|
||||
|
||||
@ -155,10 +155,6 @@ print_error_pfS() {
|
||||
echo "Log saved on ${LOGFILE}" && \
|
||||
tail -n20 ${LOGFILE} >&2
|
||||
echo
|
||||
if [ -z "${NOT_INTERACTIVE}" ]; then
|
||||
echo "Press enter to continue."
|
||||
read ans
|
||||
fi
|
||||
kill $$
|
||||
exit 1
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user