From 95f486c0769fbc09f23920ece58941460d921432 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Sat, 15 Jul 2023 14:27:24 +0200 Subject: [PATCH] =?utf8?q?Poprawienie=20odst=C4=99p=C3=B3w=20w=20komunikac?= =?utf8?q?ie=20pomocy=20-=20sekcja=20pomocy,=20funkcja=20'idle-fetch-conta?= =?utf8?q?iners',=20skrypt=20'idle.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- idle.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/idle.sh b/idle.sh index c89b9af..13095f2 100644 --- a/idle.sh +++ b/idle.sh @@ -70,7 +70,7 @@ function idle-fetch-containers() { function list-containers() { for contName in $(grep $@ $DATABASE | cut -d ";" -f 3 | awk '{printf $1" "}'); do - echo -e " $contName"; + echo -e " $contName"; done } @@ -93,23 +93,23 @@ function idle-fetch-containers() { echo; echo "Containers name:"; for contName in $(cut -d ";" -f 3 $DATABASE | awk '{printf $1" "}'); do - echo -e "\t${contName}"; + echo -e " ${contName}"; done echo; echo "Groups:"; - echo -e " --deb - based on APT package manager"; + echo -e " --deb - based on APT package manager"; grepOpts="deb.sh"; list-containers $grepOpts; #for contName in $(grep 'deb.sh' $DATABASE | cut -d ";" -f 3 | awk '{printf $1" "}'); do # echo -e "\t\t $contName"; #done - echo -e " --rpm - based on RPM package manager"; + echo -e " --rpm - based on RPM package manager"; grepOpts='-E rpm.sh|fedora.sh|opensuse.sh|alt.sh'; list-containers $grepOpts; #for contName in $(grep -E 'rpm.sh|fedora.sh|opensuse.sh|alt.sh' $DATABASE | cut -d ";" -f 3 | awk '{printf $1" "}'); do # echo -e "\t\t $contName"; #done - echo -e " --other - other containers not fit to above groups:"; + 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 $grepOpts; return 1; -- 2.39.5