فهرست منبع

Back out quietly if we can't pull either "hello-world" or "XXX/hello-world"

Tianon Gravi 8 سال پیش
والد
کامیت
5e2155e6c0
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      hello-world/update.sh

+ 2 - 2
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"