diff options
author | Luca Boccassi <bluca@debian.org> | 2023-06-05 23:48:06 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-06-06 03:37:36 +0200 |
commit | 6aea5ce814c0723474e0741df45dbf2c202ba739 (patch) | |
tree | c71422db8baeacc78f2af96b00d4a22f1558b304 /test/hwdb-test.sh | |
parent | cgls/cgtop: spell field/column "CGroup" rather than "Control Group" (diff) | |
download | systemd-6aea5ce814c0723474e0741df45dbf2c202ba739.tar.xz systemd-6aea5ce814c0723474e0741df45dbf2c202ba739.zip |
tests: fix shellcheck warnings
Diffstat (limited to 'test/hwdb-test.sh')
-rwxr-xr-x | test/hwdb-test.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/hwdb-test.sh b/test/hwdb-test.sh index 3efbad21b6..432a49fa1b 100755 --- a/test/hwdb-test.sh +++ b/test/hwdb-test.sh @@ -28,11 +28,11 @@ cp -a "$ROOTDIR/hwdb.d" "$D/etc/udev/hwdb.d" err=$("$SYSTEMD_HWDB" update --root "$D" 2>&1 >/dev/null) && rc= || rc=$? if [ -n "$err" ]; then echo "$err" - exit ${rc:-1} + exit "${rc:-1}" fi if [ -n "$rc" ]; then echo "$SYSTEMD_HWDB returned $rc" - exit $rc + exit "$rc" fi if [ ! -e "$D/etc/udev/hwdb.bin" ]; then @@ -47,7 +47,7 @@ cp -a "$ROOTDIR/test/hwdb.d" "$D/etc/udev/hwdb.d" err=$("$SYSTEMD_HWDB" update --root "$D" 2>&1 >/dev/null) && rc= || rc=$? if [ -n "$rc" ]; then echo "$SYSTEMD_HWDB returned $rc" - exit $rc + exit "$rc" fi if [ -n "$err" ]; then echo "Expected warnings" |