From ecde6afc4dacd5941629fd46c0dc0e4f620b5c87 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Wed, 9 Aug 2023 09:49:16 +0200 Subject: [PATCH] =?utf8?q?Zako=C5=84czenie=20tworzenia=20funkcji=20'ckpack?= =?utf8?q?age'=20i=20uruchomienie=20opcji=20'pkgsearch'=20-=20skrypt=20odb?= =?utf8?q?ioru=20CLI=20-=20idle-clis?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- idle-clis | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/idle-clis b/idle-clis index 887cdba..c52622d 100755 --- a/idle-clis +++ b/idle-clis @@ -46,9 +46,13 @@ function ckpackage() { containerName=$1; package=$2; case $containerName in - 'alpine') idle-exec-command $containerName "apk search $package"; break;; - 'archlinux') idle-exec-command $containerName "pacman -Ss $package"; break;; - 'debian|kali|ubuntu') idle-exec-command $containerName "apt search $package"; break;; + alpine) idle-exec-command $containerName "apk search $package";; + archlinux) idle-exec-command $containerName "pacman -Ss $package";; + debian|kali|ubuntu) idle-exec-command $containerName "apt search $package";; + fedora|rocky) idle-exec-command $containerName "dnf search $package";; + gentoo) idle-exec-command $containerName "emerge -s $packages";; + opensuse) idle-exec-command $containerName "zypper search $packages";; + void) idle-exec-command $containerName "xbps-query -Rs $package";; esac } @@ -67,7 +71,9 @@ if [ $# -gt 0 ]; then containerName=$1 doInContainers $containerName ckapropos $@; exit;; - "pkgsearch") idle-pkg-search $@; break;; + "pkgsearch") + containerName=$1; + doInContainers $containerName ckpackage $@;; esac else exit 1; -- 2.39.5