Browse Source

make systemctl check quieter

- don't output path to systemctl to stout
funding1
Benjamin Slade 4 years ago
committed by Martin Kepplinger
parent
commit
31ebfb3a8a
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() {
if command -v systemctl 2>/dev/null; then
if [ "$(command -v systemctl 2>/dev/null 2>&1)" ]; then
systemctl poweroff
else
shutdown -P now


Loading…
Cancel
Save