summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGaoyi <ymuemc@163.com>2020-06-26 07:55:41 +0200
committerLennart Poettering <lennart@poettering.net>2020-06-26 15:12:29 +0200
commit0090b551e6ba2708a736371baeaf0bdfd781a5aa (patch)
treee81ef783ea8e16040a50aff39876073afc89f2e1 /test
parentJOURNAL_FILE_FORMAT: minor markdown fixes (diff)
downloadsystemd-0090b551e6ba2708a736371baeaf0bdfd781a5aa.tar.xz
systemd-0090b551e6ba2708a736371baeaf0bdfd781a5aa.zip
Add quotes for -n
According to SC2070, -n doesn't work with unquoted arguments https://github.com/koalaman/shellcheck/wiki/SC2070 Signed-off-by: Gaoyi <ymuemc@163.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/testsuite-36.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/units/testsuite-36.sh b/test/units/testsuite-36.sh
index d04751b3f0..aed938437b 100755
--- a/test/units/testsuite-36.sh
+++ b/test/units/testsuite-36.sh
@@ -120,7 +120,7 @@ systemctlCheckNUMAProperties() {
> "$LOGFILE"
- if [ -n $3 ]; then
+ if [ -n "$3" ]; then
systemctl show -p NUMAMask $1 > "$LOGFILE"
grep "NUMAMask=$3" "$LOGFILE"
fi