From b114c139b16aeea69ab361148078ba19e491a33a Mon Sep 17 00:00:00 2001 From: fabian Date: Mon, 1 May 2023 17:28:10 +0200 Subject: [PATCH] - added new docker command for all containers - corrected param parsing --- scripts/dockerContainerAction.sh | 4 ++-- scripts/pullContainers.sh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 scripts/pullContainers.sh diff --git a/scripts/dockerContainerAction.sh b/scripts/dockerContainerAction.sh index fbfa78a..74a4e1f 100644 --- a/scripts/dockerContainerAction.sh +++ b/scripts/dockerContainerAction.sh @@ -6,8 +6,8 @@ upDownContainers() { docker_root=~/docker; while [[ $# > 0 ]]; do case $1 in - -d | --dir) docker_root=$2; shift 2;; - * ) break ;; # Anything else stops command line processing. + --dir) docker_root=$2; shift 2;; + * ) break ;; # Anything else stops command line processing. esac done diff --git a/scripts/pullContainers.sh b/scripts/pullContainers.sh new file mode 100644 index 0000000..88ca60d --- /dev/null +++ b/scripts/pullContainers.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -euo pipefail + +source ./dockerContainerAction.sh + +# FIXME!!! implement possibility to pass down directory +upDownContainers pull