Back out quietly if we can't pull either "hello-world" or "XXX/hello-world"
This commit is contained in:
parent
ae9e2bf435
commit
5e2155e6c0
|
|
@ -3,8 +3,8 @@ set -Eeuo pipefail
|
||||||
|
|
||||||
image="${1:-hello-world}"
|
image="${1:-hello-world}"
|
||||||
|
|
||||||
docker pull hello-world &> /dev/null
|
docker pull hello-world &> /dev/null || exit
|
||||||
docker pull "$image" &> /dev/null
|
docker pull "$image" &> /dev/null || exit
|
||||||
|
|
||||||
exec > "$(dirname "$(readlink -f "$BASH_SOURCE")")/content.md"
|
exec > "$(dirname "$(readlink -f "$BASH_SOURCE")")/content.md"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue