]> gitweb.morketsmerke.org Git - idle.git/commitdiff
Dodanie możliwości instalacji konterów z niestandardowej listy - do testów - tworzeni...
authorxf0r3m <jakubstasinski@protonmail.com>
Sat, 15 Jul 2023 14:10:23 +0000 (16:10 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Sat, 15 Jul 2023 14:10:23 +0000 (16:10 +0200)
idle.sh

diff --git a/idle.sh b/idle.sh
index 1e490b922d937c3649b93318dc4f5c9a7bfcae91..a1632781143561d2285f9052ba352667965ccc56 100644 (file)
--- 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;