This commit is contained in:
Kreyren 2020-02-09 16:48:58 +00:00
parent e986a637e8
commit b0be7a415b
2 changed files with 6 additions and 6 deletions

@ -60,7 +60,7 @@ elif [ "$TRAVIS_OS_NAME" = linux ] && [ -n "$DOCKER" ] && [ -z "$QEMU" ]; then
# Install dependencies # Install dependencies
if [ -n "$PACKAGES" ]; then if [ -n "$PACKAGES" ]; then
docker exec "$CONTAINER" apt install -y "$PACKAGES" || die 1 "Unable to install following packages on '$CONTAINER': '$PACKAGES'" docker exec "$CONTAINER" apt install -y "$PACKAGES" || die 1 "Unable to install following packages on '$CONTAINER': '$PACKAGES'"
elif [ -n "$PACKAGES" ]; then elif [ -z "$PACKAGES" ]; then
true true
else else
die 256 "Resolving packages for '$CONTAINER'" die 256 "Resolving packages for '$CONTAINER'"

@ -1,17 +1,17 @@
#!/bin/sh #!/bin/sh
# Simplified error handling # Simplified error handling
die() { die() {
printf 'FATAL: %s\n' "$*" printf 'FATAL: %s\n' "$2"
exit 1 exit "$1"
} }
# Simplified QA handling # Simplified QA handling
fixme() { fixme() {
printf 'FIXME: %s/n' "$*" printf 'FIXME: %s/n' "$1"
} }
# Simplified info messages # Simplified info messages
info() { info() {
printf 'INFO: %s\n' "$*" printf 'INFO: %s\n' "$1"
} }
warn() { warn() {
printf 'WARN: %s\n' "$*" printf 'WARN: %s\n' "$1"
} }