From 1e68c8a885ed4254c517e0f937fb9f73a096c7a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Wed, 21 Nov 2018 16:27:15 +0100 Subject: [PATCH] assets/release.sh:release(): fix lapse in logic. --- assets/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/release.sh b/assets/release.sh index 7021f13..849e990 100755 --- a/assets/release.sh +++ b/assets/release.sh @@ -42,9 +42,9 @@ release() { _nwjs_subdir="$(subst "${NWJS_SUBDIR}" "%NWJS_PLATFORM%" "${_platform}")"; _nwjs_url="$(subst "$(eval echo \"\${NWJS_URL_${_platform%%-*}}\")" "%NWJS_PLATFORM%" "${_platform}")"; _nwjs_fname="${RELEASES_DNAME}/${_nwjs_url##*/}"; + _release_version="$(sed -n '/^\s*"version":/s/^.*:\s*"\([0-9.]\+\)",\?\s*$/\1/p' package.json)"; _release_dname="${RELEASES_DNAME}/${PACKAGE_NAME}-${_release_version}-release-${_platform}"; _release_fname="${_release_dname}.zip"; - _release_version="$(sed -n '/^\s*"version":/s/^.*:\s*"\([0-9.]\+\)",\?\s*$/\1/p' package.json)"; trap "rm -fr ${_release_dname}" EXIT HUP INT QUIT PIPE TERM USR1 USR2; if [ "${_vflag:-0}" -eq 0 ]; then