Daniel Gruss 4 жил өмнө
parent
commit
4656f0dfc7
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      update-mattermost

+ 2 - 1
update-mattermost

@@ -1,5 +1,6 @@
 #!/usr/bin/zsh
-version=`curl https://github.com/mattermost/desktop/releases/latest 2>/dev/null | grep "tag/[^\"]*" | grep -o "[0-9]\.[0-9]\.[0-9]"`
+version=`curl https://github.com/mattermost/desktop/releases/ 2>/dev/null | grep "tag/[^\"]*" | grep -oE "[0-9]\.[0-9]\.[0-9](-rc[0-9]+)?" | head -n 1`
+
 if [ ! -e "/tmp/mattermost-desktop-$version-linux-amd64.deb" ]; then
 	wget -O /tmp/mattermost-desktop-$version-linux-amd64.deb https://releases.mattermost.com/desktop/$version/mattermost-desktop-$version-linux-amd64.deb
 fi