mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
system/vifm: Tighten up beta version check.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
166496364e
commit
918c3a2ae2
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue