refactor weave setup for clarity

This commit is contained in:
Matthias Radestock committed 2017-09-17 16:33:37 +01:00
1 parent b8d7af3822
commit 89c7e6d337
1 file changed
+7 -4
+7 -4
View File
@@ -236,10 +236,13 @@ case "$1" in
fi fi
;; ;;
setup) setup)
# call 'docker pull' outside weaveexec so we don't need a docker binary inside # call 'docker pull' outside weaveexec so we don't need a
for img in $IMAGE $EXEC_IMAGE $WEAVEDB_IMAGE ; do # docker binary inside
[ -z "$IS_LOCAL" ] && docker pull $img if [ -z "$IS_LOCAL" ] ; then
done for img in $IMAGE $EXEC_IMAGE $WEAVEDB_IMAGE ; do
docker pull $img
done
fi
;; ;;
*) *)
[ "$2" = "--help" ] && usage_no_exit && exit 0 [ "$2" = "--help" ] && usage_no_exit && exit 0