shfdhsfd
This commit is contained in:
parent
e986a637e8
commit
b0be7a415b
@ -60,7 +60,7 @@ elif [ "$TRAVIS_OS_NAME" = linux ] && [ -n "$DOCKER" ] && [ -z "$QEMU" ]; then
|
||||
# Install dependencies
|
||||
if [ -n "$PACKAGES" ]; then
|
||||
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
|
||||
else
|
||||
die 256 "Resolving packages for '$CONTAINER'"
|
||||
|
@ -1,17 +1,17 @@
|
||||
#!/bin/sh
|
||||
# Simplified error handling
|
||||
die() {
|
||||
printf 'FATAL: %s\n' "$*"
|
||||
exit 1
|
||||
printf 'FATAL: %s\n' "$2"
|
||||
exit "$1"
|
||||
}
|
||||
# Simplified QA handling
|
||||
fixme() {
|
||||
printf 'FIXME: %s/n' "$*"
|
||||
printf 'FIXME: %s/n' "$1"
|
||||
}
|
||||
# Simplified info messages
|
||||
info() {
|
||||
printf 'INFO: %s\n' "$*"
|
||||
printf 'INFO: %s\n' "$1"
|
||||
}
|
||||
warn() {
|
||||
printf 'WARN: %s\n' "$*"
|
||||
printf 'WARN: %s\n' "$1"
|
||||
}
|
Loading…
Reference in New Issue
Block a user