system/vifm: Tighten up beta version check.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2020-01-03 20:51:32 -05:00 committed by Willy Sudiarto Raharjo
parent 166496364e
commit 918c3a2ae2
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -55,8 +55,13 @@ set -e
# Accept either -beta or _beta in VERSION, fix it up. I don't
# plan to ever package a beta version, but if I ever do, the
# VERSION in the script will have the underscore, not the hyphen.
SRCVER="$( echo $VERSION | sed 's,_,-,g' )"
VERSION="$( echo $SRCVER | sed 's,-,_,g' )"
case "$VERSION" in
*-*) SRCVER="$( echo $VERSION | sed 's,_,-,g' )"
VERSION="$( echo $SRCVER | sed 's,-,_,g' )"
;;
*) SRCVER=$VERSION
;;
esac
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT