Skip to content

Commit b02edf7

Browse files
committed
update installer to determine latest version via GH tags
1 parent 194cc7f commit b02edf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -e
55

66
REPO=stelligent/mu
7-
LATEST_VERSION=`curl -s https://raw.githubusercontent.com/$REPO/master/VERSION`
7+
LATEST_VERSION=`curl --silent "https://api.github.com/repos/$REPO/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/'`
88
INSTALL_VERSION=${INSTALL_VERSION:-$LATEST_VERSION}
99
INSTALL_DIR=${INSTALL_DIR:-/usr/local/bin}
1010
INSTALL_PATH="${INSTALL_DIR%/}/mu"

0 commit comments

Comments
 (0)