diff --git a/osx/build.sh b/osx/build.sh index a1272e9db6721aa6d92eb891cf3014aec7a6f2f2..167162f35de24ab573515b694d722f82859e9875 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