diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-01 21:13:05 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-01 21:13:05 +0200 |
commit | 302187d7eea5958a4ec179720d16c899906974ab (patch) | |
tree | bd565e5a372ffde6b210a6417bb60bf0d8114ee4 /bin/menuscripts/mpower | |
parent | 2e5633ecfa2287c890e3a5873626fc0d28fc19eb (diff) |
use cat EOF
Diffstat (limited to 'bin/menuscripts/mpower')
-rwxr-xr-x | bin/menuscripts/mpower | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/menuscripts/mpower b/bin/menuscripts/mpower index 00fb96c..1543a0b 100755 --- a/bin/menuscripts/mpower +++ b/bin/menuscripts/mpower @@ -1,8 +1,11 @@ #!/bin/sh -choice="$(printf 'poweroff +choice="$( +cat <<EOF | commander -c +poweroff suspend hibernate reboot -' | commander -c)" +EOF +)" [ "$choice" ] && systemctl "$choice" |