mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
test: drop unnecessary || :
since we use `set +e` in the cleanup handler.
This commit is contained in:
parent
eda0e525d3
commit
53008d0714
@ -15,7 +15,7 @@ at_exit() {
|
||||
# from the queue
|
||||
if [[ $SHUTDOWN_AT_EXIT -ne 0 ]] && ! systemctl poweroff; then
|
||||
# PID1 is down let's try to save the journal
|
||||
journalctl --sync || : # journal can be down as well so let's ignore exit codes here
|
||||
journalctl --sync # journal can be down as well so let's ignore exit codes here
|
||||
systemctl -ff poweroff # sync() and reboot(RB_POWER_OFF)
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user