aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2018-11-02 22:04:09 -0500
committerGanesh Viswanathan <dev@genotrance.com>2018-11-02 22:04:09 -0500
commit03c38a244838809fb630431ce20b7183a6d316ca (patch)
tree0fce9f2548368d614d29dfe25a624d7ece5e6388
parentd080be55a548049b170c88a356724d505401d545 (diff)
downloadnimgen-03c38a244838809fb630431ce20b7183a6d316ca.tar.gz
nimgen-03c38a244838809fb630431ce20b7183a6d316ca.zip
Github download
-rw-r--r--.travis.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index ebf0bd4..4687afe 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,9 +9,9 @@ addons:
packages:
- libssh2-1-dev
before_script:
- - curl -u $TOKEN --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest -o latest.json
- - export RELEASE=`echo latest.json | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
- - export TXZ=`echo latest.json | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | grep linux`
+ - curl -u $TOKEN -o latest.json https://api.github.com/repos/nim-lang/nightlies/releases/latest
+ - export RELEASE=`cat latest.json | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
+ - export TXZ=`cat latest.json | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | grep linux`
- export VERSION=`echo $TXZ | cut -d"-" -f 2,2`
- echo "RELEASE = $RELEASE, TXZ = $TXZ, VERSION = $VERSION"
- tar xf $TXZ