diff options
-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 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 |