mirror of
https://github.com/gwenhael-le-moine/npm2tgz.git
synced 2024-11-16 07:48:08 +01:00
Use TMPDIR from environment if available
Makes it function like the mktemp program, others.
This commit is contained in:
parent
bdc3da32ee
commit
59fe208548
1 changed files with 1 additions and 1 deletions
2
npm2tgz
2
npm2tgz
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue