build-support: Quote expansions inside ${…}
As per ShellCheck: > SC2295 (info): Expansions inside ${..} need to be quoted separately, > otherwise they match as patterns.
This commit is contained in:
parent
4bbebb3fab
commit
f7cbf3f7ca
@ -104,13 +104,13 @@ badPath() {
|
||||
# directory (including the build directory).
|
||||
test \
|
||||
"$p" != "/dev/null" -a \
|
||||
"${p#${NIX_STORE}}" = "$p" -a \
|
||||
"${p#${NIX_BUILD_TOP}}" = "$p" -a \
|
||||
"${p#/tmp}" = "$p" -a \
|
||||
"${p#${TMP:-/tmp}}" = "$p" -a \
|
||||
"${p#${TMPDIR:-/tmp}}" = "$p" -a \
|
||||
"${p#${TEMP:-/tmp}}" = "$p" -a \
|
||||
"${p#${TEMPDIR:-/tmp}}" = "$p"
|
||||
"${p#"${NIX_STORE}"}" = "$p" -a \
|
||||
"${p#"${NIX_BUILD_TOP}"}" = "$p" -a \
|
||||
"${p#/tmp}" = "$p" -a \
|
||||
"${p#"${TMP:-/tmp}"}" = "$p" -a \
|
||||
"${p#"${TMPDIR:-/tmp}"}" = "$p" -a \
|
||||
"${p#"${TEMP:-/tmp}"}" = "$p" -a \
|
||||
"${p#"${TEMPDIR:-/tmp}"}" = "$p"
|
||||
}
|
||||
|
||||
expandResponseParams() {
|
||||
|
Loading…
Reference in New Issue
Block a user