Accept $TMP, $TMPDIR, $TEMP, and $TEMPDIR paths in purity check
This commit is contained in:
parent
872f2b76c1
commit
5796715bb7
|
@ -69,9 +69,13 @@ badPath() {
|
|||
# directory (including the build directory).
|
||||
test \
|
||||
"$p" != "/dev/null" -a \
|
||||
"${p#${NIX_STORE}}" = "$p" -a \
|
||||
"${p#${TMP:-/tmp}}" = "$p" -a \
|
||||
"${p#${NIX_BUILD_TOP}}" = "$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