From 5e2155e6c01409befac7777682f9ffa669f26533 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 6 Jul 2017 11:06:08 -0700 Subject: [PATCH] Back out quietly if we can't pull either "hello-world" or "XXX/hello-world" --- hello-world/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hello-world/update.sh b/hello-world/update.sh index 9d00f6b4f..e6378c5b1 100755 --- a/hello-world/update.sh +++ b/hello-world/update.sh @@ -3,8 +3,8 @@ set -Eeuo pipefail image="${1:-hello-world}" -docker pull hello-world &> /dev/null -docker pull "$image" &> /dev/null +docker pull hello-world &> /dev/null || exit +docker pull "$image" &> /dev/null || exit exec > "$(dirname "$(readlink -f "$BASH_SOURCE")")/content.md"