diff options
author | Gaoyi <ymuemc@163.com> | 2020-06-26 07:55:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-06-26 15:12:29 +0200 |
commit | 0090b551e6ba2708a736371baeaf0bdfd781a5aa (patch) | |
tree | e81ef783ea8e16040a50aff39876073afc89f2e1 /test | |
parent | JOURNAL_FILE_FORMAT: minor markdown fixes (diff) | |
download | systemd-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-x | test/units/testsuite-36.sh | 2 |
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 |