Skip to content

Commit

Permalink
Fix fetching latest purescript tag in .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
th-awake committed Mar 5, 2020
1 parent 6a933c2 commit 1b9f833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_js: stable
env:
- PATH=$HOME/purescript:$PATH
install:
- TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
- TAG=$(curl --silent "https://api.github.com/repos/purescript/purescript/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
- chmod a+x $HOME/purescript
Expand Down

0 comments on commit 1b9f833

Please sign in to comment.