From 5eaf8b752b356e2c18874c43bf1dd80e0986e3a9 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Fri, 19 Aug 2011 06:28:56 -0700 Subject: [PATCH] this version works correctly with SNAPSHOT --- osx/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osx/build.sh b/osx/build.sh index a1272e9db6..167162f35d 100755 --- a/osx/build.sh +++ b/osx/build.sh @@ -14,7 +14,7 @@ PACKAGEMAKER="$DEV_DIR/Applications/Utilities/PackageMaker.app/Contents/MacOS/Pa # Get the Jenkins version number cp "$1" $(dirname $0)/jenkins.war.tmp if [ -z "$2" ]; then - version=$(unzip -p $(dirname $0)/jenkins.war.tmp META-INF/MANIFEST.MF | grep Implementation-Version | cut -d ' ' -f2 | tr - . | tr -d '\r' | sed -e "s/-SNAPSHOT//") + version=$(unzip -p $(dirname $0)/jenkins.war.tmp META-INF/MANIFEST.MF | grep Implementation-Version | cut -d ' ' -f2 | tr -d '\r' | sed -e "s/-SNAPSHOT//" | tr - . ) else version="$2" fi -- GitLab