summaryrefslogtreecommitdiffstats
path: root/test/hwdb-test.sh
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-06-05 23:48:06 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-06-06 03:37:36 +0200
commit6aea5ce814c0723474e0741df45dbf2c202ba739 (patch)
treec71422db8baeacc78f2af96b00d4a22f1558b304 /test/hwdb-test.sh
parentcgls/cgtop: spell field/column "CGroup" rather than "Control Group" (diff)
downloadsystemd-6aea5ce814c0723474e0741df45dbf2c202ba739.tar.xz
systemd-6aea5ce814c0723474e0741df45dbf2c202ba739.zip
tests: fix shellcheck warnings
Diffstat (limited to 'test/hwdb-test.sh')
-rwxr-xr-xtest/hwdb-test.sh6
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"