Browse Source

make systemctl check quieter

- don't output path to systemctl to stout
pull/156/head
Benjamin Slade 4 years ago
parent
commit
376b29b22f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      util/functions.sh

+ 1
- 1
util/functions.sh View File

@ -59,7 +59,7 @@ warn_not_root() {
} }
poweroff() { poweroff() {
if command -v systemctl 2>/dev/null; then
if [ "$(command -v systemctl 2>/dev/null 2>&1)" ]; then
systemctl poweroff systemctl poweroff
else else
shutdown -P now shutdown -P now


Loading…
Cancel
Save