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
;;
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