summaryrefslogtreecommitdiff
path: root/test/mkosi-check-and-shutdown.sh
blob: ed76ef370ad9999f0d08664862d510132feef6c8 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash -eux
# SPDX-License-Identifier: LGPL-2.1-or-later

systemctl --failed --no-legend | tee /failed-services

# Exit with non-zero EC if the /failed-services file is not empty (we have -e set)
[[ ! -s /failed-services ]]

: >/testok