if [ "$1" == "setup" ]; then
[ -x ./tests/goss ] || curl -fsSL https://goss.rocks/install | GOSS_DST="$(pwd)/tests" sh
sudo apt-get update
- sudo apt-get -y install qemu-system-x86 kpartx python3-pexpect python3-serial
+ sudo apt-get -qq -y install qemu-system-x86 kpartx python3-pexpect python3-serial
# TODO: docker.io
exit 0
fi
fi
apt-get update
-apt-get install --no-install-recommends -y build-essential devscripts equivs
+apt-get install -qq -y --no-install-recommends build-essential devscripts equivs
SOURCEDIR=$PWD
RELEASE="$3"
if [ -n "${DEBOOTSTRAP:-}" ] && [ "${DEBOOTSTRAP:-}" != "debootstrap" ]; then
- apt-get install -y "${DEBOOTSTRAP}"
+ apt-get install -qq -y "${DEBOOTSTRAP}"
fi
set -x
apt-get update
# docker images can be relatively old, especially for unstable.
-apt-get -y upgrade
-apt-get -y install "$DEB_NAME"
+apt-get upgrade -qq -y
+apt-get install -qq -y "$DEB_NAME"