mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00: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…
Reference in a new issue