aboutsummaryrefslogtreecommitdiff
path: root/system/vifm
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-01-03 20:51:32 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-12 08:47:42 +0700
commit918c3a2ae2ff537cbfca928f65960df60c755610 (patch)
treebb4b138d5b8e5f3f1287f149ca0c0f02713d0be9 /system/vifm
parent166496364e192151b4c5d1458091c8960ca70b35 (diff)
system/vifm: Tighten up beta version check.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/vifm')
-rw-r--r--system/vifm/vifm.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/system/vifm/vifm.SlackBuild b/system/vifm/vifm.SlackBuild
index 1d14ae47c4d04..5974e05a88b3d 100644
--- a/system/vifm/vifm.SlackBuild
+++ b/system/vifm/vifm.SlackBuild
@@ -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