summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author B. Watson2020-01-04 02:51:32 +0100
committer Willy Sudiarto Raharjo2020-01-12 02:47:42 +0100
commit918c3a2ae2ff537cbfca928f65960df60c755610 (patch)
treebb4b138d5b8e5f3f1287f149ca0c0f02713d0be9 /system
parent166496364e192151b4c5d1458091c8960ca70b35 (diff)
downloadslackbuilds-918c3a2ae2ff537cbfca928f65960df60c755610.tar.gz
system/vifm: Tighten up beta version check.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system')
-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 1d14ae47c4..5974e05a88 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