From 7d3919e3f7e1d125cc9c053a311fecbcb7e71f87 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 8 Nov 2018 10:50:26 +0400 Subject: [PATCH] Correctly parse version in the snap. --- snap/snapcraft.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 4910b91b4d..10af7dbc69 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -14,12 +14,9 @@ version-script: | set -x version_file=Telegram/build/version version=$(sed -n "s/AppVersionStr[ ]\+\(.*\)\+/\1/p" $version_file) - alpha=$(sed -n "s/AlphaChannel[ ]\+\(.*\)\+/\1/p" $version_file) - beta=$(sed -n "s/BetaVersion[ ]\+\(.*\)\+/\1/p" $version_file) + beta=$(sed -n "s/BetaChannel[ ]\+\(.*\)\+/\1/p" $version_file) - if [ "$alpha" != "0" ]; then - version="$version-alpha" - elif [ "$beta" != "0" ]; then + if [ "$beta" != "0" ]; then version="$version-beta" fi