From f030623b62c6ce38e0d6c079f13f92a5929baac5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 28 Jun 2013 10:35:24 -0400 Subject: [PATCH] scripts: fix prerelease detection --- scripts/dist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dist.sh b/scripts/dist.sh index a5728c402..5d7cb6ed5 100755 --- a/scripts/dist.sh +++ b/scripts/dist.sh @@ -13,7 +13,7 @@ cd $DIR # of packer/version.go. VERSION=$(grep "const Version " packer/version.go | sed -E 's/.*"(.+)"$/\1/') VERSIONDIR="${VERSION}" -PREVERSION=$(grep "const VersionPrerelease " packer/version.go | sed -E 's/.*"(.+)"$/\1/') +PREVERSION=$(grep "const VersionPrerelease " packer/version.go | sed -E 's/.*"(.*)"$/\1/') if [ ! -z $PREVERSION ]; then PREVERSION="${PREVERSION}.$(date -u +%s)" VERSIONDIR="${VERSIONDIR}-${PREVERSION}"