From 89c7e6d337c62aea17ffb10c2fc96c3bd0274cee Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Sun, 17 Sep 2017 16:33:37 +0100 Subject: [PATCH] refactor `weave setup` for clarity --- weave | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/weave b/weave index dbcb2d6c..f9ced178 100755 --- a/weave +++ b/weave @@ -236,10 +236,13 @@ case "$1" in fi ;; setup) - # call 'docker pull' outside weaveexec so we don't need a docker binary inside - for img in $IMAGE $EXEC_IMAGE $WEAVEDB_IMAGE ; do - [ -z "$IS_LOCAL" ] && docker pull $img - done + # call 'docker pull' outside weaveexec so we don't need a + # docker binary inside + if [ -z "$IS_LOCAL" ] ; then + for img in $IMAGE $EXEC_IMAGE $WEAVEDB_IMAGE ; do + docker pull $img + done + fi ;; *) [ "$2" = "--help" ] && usage_no_exit && exit 0