X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=platform%2Fosx%2Fmake_dmg.sh;h=faf42e6359b6cdc0e6b74f470786d420c2ec20c5;hb=refs%2Ftags%2Fv2.15.186;hp=bad257d78dcbfb15c5d2e36925a9387b2fc42066;hpb=e39b03a7ba6e47c4cbd44d11c601f5f9e52afb65;p=dcpomatic.git diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh index bad257d78..faf42e635 100644 --- a/platform/osx/make_dmg.sh +++ b/platform/osx/make_dmg.sh @@ -8,7 +8,7 @@ SYNTAX="make_dmg.sh # were found. # Use a tag if what we've built is exactly on one -version=$(git describe --tags --abbrev=0 --match=v2.*.* --exact-match 2> /dev/null) +version=$(git describe --tags --abbrev=0 --match=v2.*.* --exact-match 2> /dev/null | sed -e "s/^v//") if [ "$?" != "0" ]; then # Otherwise use - version="$(basename $(git name-rev --name-only HEAD))-$(git rev-parse --short HEAD)"