Skip to content

Commit

Permalink
Fix regex for older grep versions (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed-wu authored and tj committed Feb 7, 2017
1 parent 9473f6d commit 0b40aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ elif [ "$UNAME" = "OpenBSD" ] ; then

fi

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

Expand Down

0 comments on commit 0b40aed

Please sign in to comment.