From ed9e510c32fd7f0f656878350ffed7fc0b41d349 Mon Sep 17 00:00:00 2001 From: "Celestial.y" Date: Wed, 3 Dec 2025 21:35:36 +0800 Subject: [PATCH] Remove determine subcommand install* --- sdata/lib/functions.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sdata/lib/functions.sh b/sdata/lib/functions.sh index ecaf1fcc1..0fe24f0ed 100644 --- a/sdata/lib/functions.sh +++ b/sdata/lib/functions.sh @@ -91,12 +91,6 @@ function sudo_init_keepalive(){ return 0 fi - # Only initialize for install-related commands that need sudo - case "${SUBCMD_NAME}" in - install|install-deps|install-setups) ;; - *) return 0 ;; - esac - # Skip if already initialized if [[ -n "$SUDO_KEEPALIVE_PID" ]] && kill -0 "$SUDO_KEEPALIVE_PID" 2>/dev/null; then return 0