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>
This commit is contained in:
Gaoyi 2020-06-26 13:55:41 +08:00 committed by Lennart Poettering
parent 22aa58adc9
commit 0090b551e6
1 changed files with 1 additions and 1 deletions

View File

@ -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