From 8c7ea43b421329a329f47666eb1bcc435ad2dee1 Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sat, 6 Apr 2024 18:20:49 +0300 Subject: [PATCH] Fix s --- VERSION | 2 +- s | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 0960158..809bdcb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11 +1.12 diff --git a/s b/s index c098b6c..38f67e6 100755 --- a/s +++ b/s @@ -5,7 +5,7 @@ cat > /tmp/.dialogrc << EOL # Item color tag_color = (BLACK,WHITE,ON) EOL -service=$(systemctl list-units --type service --all --plain --quiet | awk '{ print $1 }' | fzf --multi --cycle --reverse --preview 'SYSTEMD_COLORS=1 systemctl status --no-pager {1}') +service=$(systemctl list-unit-files --type=service --quiet | awk '{ print $1 }' | fzf --multi --cycle --reverse --preview 'SYSTEMD_COLORS=1 systemctl status --no-pager {1}') set +ex action=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose the action for $service" 10 40 0 "Start" 1 "Stop" 2 "Disable" 3 "Enable" 4)