mirror of
https://github.com/gwenhael-le-moine/npm2tgz.git
synced 2024-12-26 09:58:25 +01:00
Merge pull request #6 from h3xx/respect-tmpdir
Use TMPDIR from environment if available
This commit is contained in:
commit
971418f133
1 changed files with 1 additions and 1 deletions
2
npm2tgz
2
npm2tgz
|
@ -61,7 +61,7 @@ fi
|
||||||
NODE_PKG=$1
|
NODE_PKG=$1
|
||||||
|
|
||||||
PRGNAM=$(echo "$NODE_PKG" | tr / _ | sed 's|^@||' | cut -d@ -f1)
|
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"
|
[ -e "$PKG" ] && rm -fr "$PKG"
|
||||||
mkdir -p "$PKG"
|
mkdir -p "$PKG"
|
||||||
|
|
Loading…
Reference in a new issue