diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-29 20:30:08 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-30 12:12:00 +0200 |
commit | 1c3f490f230c1dad83901b1768456082159f2cbe (patch) | |
tree | 0a1554e98d09f1aaa8ec1488ccbc035bb471cca4 /test/hwdb-test.sh | |
parent | 91c64ad620d9bfdfcaeedc952ccf8a380e09e663 (diff) | |
download | systemd-1c3f490f230c1dad83901b1768456082159f2cbe.tar.gz |
test: shellcheck-ify test scripts
Diffstat (limited to 'test/hwdb-test.sh')
-rwxr-xr-x | test/hwdb-test.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/hwdb-test.sh b/test/hwdb-test.sh index 57d98e513b..0551f26a2d 100755 --- a/test/hwdb-test.sh +++ b/test/hwdb-test.sh @@ -10,7 +10,7 @@ set -e export SYSTEMD_LOG_LEVEL=info -ROOTDIR=$(dirname $(dirname $(readlink -f $0))) +ROOTDIR="$(dirname "$(dirname "$(readlink -f "$0")")")" SYSTEMD_HWDB="${1:?missing argument}" if [ ! -x "$SYSTEMD_HWDB" ]; then @@ -18,7 +18,8 @@ if [ ! -x "$SYSTEMD_HWDB" ]; then exit 1 fi -D=$(mktemp --tmpdir --directory "hwdb-test.XXXXXXXXXX") +D="$(mktemp --tmpdir --directory "hwdb-test.XXXXXXXXXX")" +# shellcheck disable=SC2064 trap "rm -rf '$D'" EXIT INT QUIT PIPE mkdir -p "$D/etc/udev" ln -s "$ROOTDIR/hwdb.d" "$D/etc/udev/hwdb.d" |