Merge pull request #1020 from runswithd6s/master
rpm/build topdir fix for BSD mktemp
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -9,7 +9,7 @@ fi | ... | @@ -9,7 +9,7 @@ fi |
9 | 9 | ||
10 | name="casperjs" | 10 | name="casperjs" |
11 | name=${name%.spec} | 11 | name=${name%.spec} |
12 | topdir=$(mktemp -d) | 12 | topdir=$(mktemp -d "${TMPDIR:-/tmp}/${name}-build-XXXXXX") |
13 | # Get version from package.json | 13 | # Get version from package.json |
14 | version=$(grep '"version"' ../package.json | sed 's/.*"\(.*\)": "\(.*\)".*/\2/' | sed 's/[-]//') | 14 | version=$(grep '"version"' ../package.json | sed 's/.*"\(.*\)": "\(.*\)".*/\2/' | sed 's/[-]//') |
15 | builddir=${TMPDIR:-/tmp}/${name}-${version} | 15 | builddir=${TMPDIR:-/tmp}/${name}-${version} | ... | ... |
-
Please register or sign in to post a comment