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/udev-dmi-memory-id-test.sh | |
parent | test: drop an unused file (diff) | |
download | systemd-1c3f490f230c1dad83901b1768456082159f2cbe.tar.xz systemd-1c3f490f230c1dad83901b1768456082159f2cbe.zip |
test: shellcheck-ify test scripts
Diffstat (limited to 'test/udev-dmi-memory-id-test.sh')
-rwxr-xr-x | test/udev-dmi-memory-id-test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/udev-dmi-memory-id-test.sh b/test/udev-dmi-memory-id-test.sh index e8b69245d8..f1f4c26caa 100755 --- a/test/udev-dmi-memory-id-test.sh +++ b/test/udev-dmi-memory-id-test.sh @@ -8,10 +8,11 @@ input="$2" expected="$3" output=$(mktemp --tmpdir "test-udev-dmi-memory-id.XXXXXXXXXX") +# shellcheck disable=SC2064 trap "rm '$output'" EXIT INT QUIT PIPE ( set -x - "$dmi_memory_id" -F "$input" >$output + "$dmi_memory_id" -F "$input" >"$output" diff -u "$output" "$expected" ) |