Tools: Make the Alpine and Arch setup scripts more strict.

Make sure alpine-setup.sh and arch-setup.sh fail with a nonzero status
similar to debian-setup.sh and rpm-setup.sh.
This commit is contained in:
Gerald Combs 2022-04-17 11:04:02 -07:00
parent 05c86efcf6
commit 6900065f2d
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,8 @@
# that way.
#
set -e -u -o pipefail
if [ "$1" = "--help" ]
then
printf "\\nUtility to setup a alpine system for Wireshark Development.\\n"

View File

@ -11,6 +11,8 @@
# that way.
#
set -e -u -o pipefail
if [ "$1" = "--help" ]
then
printf "\\nUtility to setup a pacman-based system for Wireshark development.\\n"
@ -112,7 +114,7 @@ then
fi
# Partial upgrades are unsupported.
pacman -Syu --needed $ACTUAL_LIST $OPTIONS || exit 2
pacman --sync --refresh --needed $ACTUAL_LIST $OPTIONS || exit 2
if [ $ADDITIONAL -eq 0 ]
then