From: xf0r3m Date: Sat, 15 Jul 2023 14:10:23 +0000 (+0200) Subject: Dodanie możliwości instalacji konterów z niestandardowej listy - do testów - tworzeni... X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=cd8f74d4a3541fce3029788bc995c89d266ec581;p=idle.git Dodanie możliwości instalacji konterów z niestandardowej listy - do testów - tworzenie kontenerów, funkcja 'idle-fetch-containers', skrypt 'idle.sh' --- diff --git a/idle.sh b/idle.sh index 1e490b9..a163278 100644 --- a/idle.sh +++ b/idle.sh @@ -84,7 +84,11 @@ function idle-fetch-containers() { } function mass-create-container() { - containerNameList=$(grep $@ $DATABASE | cut -d ";" -f 3 | awk '{printf $1" "}'); + if echo $1 | grep -q '\,'; then + containerNameList=$(echo $1 | sed 's/,/ /g'); + else + containerNameList=$(grep $@ $DATABASE | cut -d ";" -f 3 | awk '{printf $1" "}'); + fi for contName in $containerNameList; do create-container $contName; done @@ -102,6 +106,8 @@ function idle-fetch-containers() { mass-create-container $rpmGrepOpts; elif [ "$1" = "--other" ]; then mass-create-container $otherGrepOpts; + elif echo $1 | grep -q '\,'; then + mass-create-container $1; else contName=$1; create-container $contName;