Merge pull request #6 from h3xx/respect-tmpdir

Use TMPDIR from environment if available
This commit is contained in:
gwenhael 2023-07-29 20:03:02 +02:00 committed by GitHub
commit 971418f133
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ fi
NODE_PKG=$1
PRGNAM=$(echo "$NODE_PKG" | tr / _ | sed 's|^@||' | cut -d@ -f1)
PKG=/tmp/$TAG/pkg-$PRGNAM
PKG=${TMPDIR:-/tmp}/$TAG/pkg-$PRGNAM
[ -e "$PKG" ] && rm -fr "$PKG"
mkdir -p "$PKG"