Mercurial > sat_docs
diff docker/do_all.sh @ 27:b2a09608bd9b
docker: fixed "./do_all.sh pull" + minor change
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 20 Oct 2014 16:55:45 +0200 |
parents | 0e78c8a4626e |
children | bcba1966e6db |
line wrap: on
line diff
--- a/docker/do_all.sh Mon Oct 20 16:50:12 2014 +0200 +++ b/docker/do_all.sh Mon Oct 20 16:55:45 2014 +0200 @@ -51,11 +51,11 @@ cont_name=$(grep -o "Salut à Toi/[^ ]\+" $cont_dir/Dockerfile | sed "s&Salut à Toi/&&" | tr '[:upper:]' '[:lower:]') cd "$cont_dir" printf "\n==> Doing a $cmd for $ACCOUNT/$cont_name in $cont_dir with extra [$@] <===\n\n" - docker $cmd $BEFORE "$ACCOUNT/${cont_name}${TAG}" "$@" "$AFTER" + docker $cmd $BEFORE "$ACCOUNT/${cont_name}${TAG}" "$@" $AFTER err=$? cd "$ori_dir" if [ $err -ne 0 ]; then - printf "Build of $cont_name failed (exit code $err), exiting\n" + printf "$cmd of $cont_name failed (exit code $err), exiting\n" exit 1 fi done