Skip to content

Commit

Permalink
Fix #58 - Implements fix provided by @expz (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjack authored and Sung Won Cho committed Feb 13, 2018
1 parent 1bfaa61 commit a0e7fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Expand Up @@ -46,7 +46,7 @@ install() {
fi
fi

LATEST=$(curl -s https://api.github.com/repos/dnote-io/cli/tags | grep -Eo '"name": "v\d*\.\d*\.\d*",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2)
LATEST=$(curl -s https://api.github.com/repos/dnote-io/cli/tags | grep -Eo '"name":[ ]*"v[0-9]*\.[0-9]*\.[0-9]*",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2)
URL="https://github.com/dnote-io/cli/releases/download/$LATEST/dnote-$PLATFORM"
DEST=${DEST:-/usr/local/bin/dnote}

Expand Down

0 comments on commit a0e7fd2

Please sign in to comment.