From d14a0180cceca3982f92af30193fa8dc07a72297 Mon Sep 17 00:00:00 2001 From: CodeChenL <2540735020@qq.com> Date: Wed, 17 Jul 2024 17:25:58 +0800 Subject: [PATCH] fix: add --all options for available_targets check --- src/usr/lib/rsetup/tui/system/system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/lib/rsetup/tui/system/system.sh b/src/usr/lib/rsetup/tui/system/system.sh index ddf93e6..5637fe5 100644 --- a/src/usr/lib/rsetup/tui/system/system.sh +++ b/src/usr/lib/rsetup/tui/system/system.sh @@ -171,7 +171,7 @@ __system_set_target(){ for i in "${available_targets[@]}" do - if [[ -z "$(systemctl list-units --no-legend "$i")" ]] + if [[ -z "$(systemctl list-units --all --no-legend "$i")" ]] then continue elif [[ "$i" == "$current_target" ]]