diff options
author | B. Watson <yalhcru@gmail.com> | 2020-01-03 20:51:32 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-12 08:47:42 +0700 |
commit | 918c3a2ae2ff537cbfca928f65960df60c755610 (patch) | |
tree | bb4b138d5b8e5f3f1287f149ca0c0f02713d0be9 /system/vifm | |
parent | 166496364e192151b4c5d1458091c8960ca70b35 (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.SlackBuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/system/vifm/vifm.SlackBuild b/system/vifm/vifm.SlackBuild index 1d14ae47c4d0..5974e05a88b3 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 |