Make installer quiet too
This commit is contained in:
parent
aa26d4bc1a
commit
f6158d0ffb
1 changed files with 6 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
BASEDIR=$(dirname $0)
|
BASEDIR=$(dirname $0)
|
||||||
INSTALL=0
|
INSTALL=0
|
||||||
UPDATE=0
|
UPDATE=0
|
||||||
|
INSTALLER_ARGS=''
|
||||||
RUN_VIM="vim -N --clean --not-a-term"
|
RUN_VIM="vim -N --clean --not-a-term"
|
||||||
RUN_TEST="${RUN_VIM} -S lib/run_test.vim"
|
RUN_TEST="${RUN_VIM} -S lib/run_test.vim"
|
||||||
BASEDIR_CMD='py3 pass'
|
BASEDIR_CMD='py3 pass'
|
||||||
|
|
@ -48,6 +49,7 @@ while [ -n "$1" ]; do
|
||||||
# old on macOS
|
# old on macOS
|
||||||
out_fd=3
|
out_fd=3
|
||||||
exec 3>/dev/null
|
exec 3>/dev/null
|
||||||
|
INSTALLER_ARGS="${INSTALLER_ARGS} --quiet"
|
||||||
;;
|
;;
|
||||||
"--")
|
"--")
|
||||||
shift
|
shift
|
||||||
|
|
@ -82,7 +84,10 @@ if [ "${out_fd}" = "1" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$INSTALL" = "1" ] || [ "$INSTALL" = "script" ]; then
|
if [ "$INSTALL" = "1" ] || [ "$INSTALL" = "script" ]; then
|
||||||
if ! python3 $(dirname $0)/install_gadget.py --basedir ${BASEDIR} --all; then
|
if ! python3 $(dirname $0)/install_gadget.py \
|
||||||
|
--basedir ${BASEDIR} \
|
||||||
|
${INSTALLER_ARGS} \
|
||||||
|
--all; then
|
||||||
echo "Script installation reported errors" >&2
|
echo "Script installation reported errors" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue