We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 194cc7f commit b02edf7Copy full SHA for b02edf7
install.sh
@@ -4,7 +4,7 @@
4
set -e
5
6
REPO=stelligent/mu
7
-LATEST_VERSION=`curl -s https://raw.githubusercontent.com/$REPO/master/VERSION`
+LATEST_VERSION=`curl --silent "https://api.github.com/repos/$REPO/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/'`
8
INSTALL_VERSION=${INSTALL_VERSION:-$LATEST_VERSION}
9
INSTALL_DIR=${INSTALL_DIR:-/usr/local/bin}
10
INSTALL_PATH="${INSTALL_DIR%/}/mu"
0 commit comments