From 4458e03cd26b67195bc369a2c846a50d7021d7dd Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 30 Jan 2025 03:03:54 +0100 Subject: [PATCH] utils: add update operation and support multiple args for uninstall Signed-off-by: Joachim Wiberg --- utils/srop | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/utils/srop b/utils/srop index a0a7dfad..f05d3319 100755 --- a/utils/srop +++ b/utils/srop @@ -22,7 +22,7 @@ commands: modify MOD Modify (change/update) module, may use :ALL install MOD Install module uninstall MOD Uninstall module (force) - + update PATH Update module from PATH EOF } @@ -99,7 +99,12 @@ case $cmd in $CTL -c "$1" $perms $owner $group $features -v3 ;; uninstall) - $CTL -u "$1" -f -v3 + for mod in "$@"; do + $CTL -u "$mod" -f -v3 + done + ;; + update) + $CTL -U "$1" -s "$MOD" $perms $owner $group $features -v3 ;; *) echo "NOP"