- added new docker command for all containers

- corrected param parsing
This commit is contained in:
fabian 2023-05-01 17:28:10 +02:00
parent b5f66ebcb8
commit b114c139b1
2 changed files with 9 additions and 2 deletions

View File

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

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
source ./dockerContainerAction.sh
# FIXME!!! implement possibility to pass down directory
upDownContainers pull