From 1761fffeb524c89faff24ecb3390d3587db909f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismael=20Barros=C2=B2?= Date: Sun, 20 Mar 2016 12:08:03 +0100 Subject: [PATCH] Accept underscores separating application name from package version --- bintray.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bintray.sh b/bintray.sh index 72213618..38b8df3f 100755 --- a/bintray.sh +++ b/bintray.sh @@ -123,7 +123,7 @@ if [ "$IS_AN_APPIMAGE" ] ; then fi fi -if [[ "$(basename "$FILE")" =~ (.*)\ (.*)-([^- ]*).(AppImage|run) ]] ; then # AppImages +if [[ "$(basename "$FILE")" =~ (.*)[\ _](.*)-([^- ]*).(AppImage|run) ]] ; then # AppImages [ "$PCK_NAME" == "" ] && PCK_NAME="${BASH_REMATCH[1]}" [ "$VERSION" == "" ] && VERSION="${BASH_REMATCH[2]}" # ARCH="${BASH_REMATCH[3]}" @@ -131,7 +131,7 @@ elif [[ "$(basename "$FILE")" =~ ([^- ]*)-([^- ]*)-([^- ]*).(AppImage|run) ]] ; [ "$PCK_NAME" == "" ] && PCK_NAME="${BASH_REMATCH[1]}" [ "$VERSION" == "" ] && VERSION="${BASH_REMATCH[2]}" # ARCH="${BASH_REMATCH[3]}" -elif [[ "$(basename "$FILE")" =~ (.*)\ (.*)-([^- ]*) ]] ; then # Other binaries +elif [[ "$(basename "$FILE")" =~ (.*)[\ _](.*)-([^- ]*) ]] ; then # Other binaries PCK_NAME="${BASH_REMATCH[1]}" [ "$VERSION" == "" ] && VERSION="${BASH_REMATCH[2]}" # ARCH="${BASH_REMATCH[3]}"