From feb3a13a71758ee3cf38e5b9d4c50fb6975789ec Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 9 Dec 2016 20:23:19 +0000 Subject: [PATCH] Get version after we've checked out... --- scripts/electron-package.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/electron-package.sh b/scripts/electron-package.sh index 6faad2bb..1403b1b2 100755 --- a/scripts/electron-package.sh +++ b/scripts/electron-package.sh @@ -73,12 +73,12 @@ projdir=`pwd` builddir=`mktemp -d 2>/dev/null || mktemp -d -t 'buildtmp'` pushd "$builddir" -# Figure out what version we're building -vername=`jq -r .version package.json` - git clone "$projdir" . git checkout "$version" +# Figure out what version we're building +vername=`jq -r .version package.json` + if [ -n "$conffile" ]; then popd cp "$conffile" "$builddir/"