diff --git a/images/paperless-ng/paperless-ng.sh b/images/paperless-ng/paperless-ng.sh index c46af68..2131fc1 100755 --- a/images/paperless-ng/paperless-ng.sh +++ b/images/paperless-ng/paperless-ng.sh @@ -9,7 +9,7 @@ output_dir="${1}"; log_msg() { # echo "[github-get-releases] [${SECONDS}] $*" >&2; - echo "[docker-images/paperless-ng] $*" >&2; + echo -e "[docker-images/paperless-ng] $*" >&2; } if [[ -z "${output_dir}" ]]; then @@ -75,6 +75,9 @@ docker_tag="${IMAGEBUILDER_REGISTRY}/paperless-ng"; log_msg "Building docker image"; docker build --no-cache --pull --tag "${docker_tag}" .; +if [[ "$?" -ne 0 ]]; then + log_msg "Error: docker build returned exit status $?"; +fi log_msg "Pushing docker image"; docker push "${docker_tag}";