Fix s
This commit is contained in:
parent
1247d9ba54
commit
8c7ea43b42
2
s
2
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue