From: xf0r3m Date: Sat, 15 Jul 2023 13:53:08 +0000 (+0200) Subject: Poprawienie błedów w sekcji odpowiedzialnej za instalacje grup kontenerów - tworzenie... X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=edc507e0bb6765230cfb7efd70c870ee7ff9f0c5;p=idle.git Poprawienie błedów w sekcji odpowiedzialnej za instalacje grup kontenerów - tworzenie kontenerów, funkcja 'idle-fetch-containers', skrypt 'idle.sh' --- diff --git a/idle.sh b/idle.sh index f763250..1e490b9 100644 --- a/idle.sh +++ b/idle.sh @@ -60,7 +60,7 @@ function idle-fetch-containers() { rpmGrepOpts='-E rpm.sh|fedora.sh|opensuse.sh|alt.sh'; debGrepOpts='deb.sh'; - otherGrepOpts='-v -e rpm.sh|fedora.sh|opensuse.sh|alt.sh|deb.sh'; + otherGrepOpts='-v -E rpm.sh|fedora.sh|opensuse.sh|alt.sh|deb.sh'; function create-container() { containerName=$1; @@ -97,11 +97,11 @@ function idle-fetch-containers() { create-container $contName; done elif [ "$1" = "--deb" ]; then - mass-create-container $debGrepOptions; + mass-create-container $debGrepOpts; elif [ "$1" = "--rpm" ]; then - mass-create-container $rpmGrepOptions; + mass-create-container $rpmGrepOpts; elif [ "$1" = "--other" ]; then - mass-create-container $otherGrepOptions; + mass-create-container $otherGrepOpts; else contName=$1; create-container $contName; @@ -122,10 +122,8 @@ function idle-fetch-containers() { echo -e " --deb - based on APT package manager"; list-containers $debGrepOpts; echo -e " --rpm - based on RPM package manager"; - grepOpts='-E rpm.sh|fedora.sh|opensuse.sh|alt.sh'; list-containers $rpmGrepOpts; echo -e " --other - other containers not fit to above groups:"; - grepOpts='-v -e rpm.sh|fedora.sh|opensuse.sh|alt.sh|deb.sh'; list-containers $otherGrepOpts; return 1; fi