From 26207045aab8961702d4b859abe73775be4955e8 Mon Sep 17 00:00:00 2001 From: Lev <1187448+levb@users.noreply.github.com> Date: Thu, 14 Sep 2023 06:18:21 -0700 Subject: [PATCH] Update buildOnTravis.sh Co-authored-by: Ziya Suzen --- buildOnTravis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildOnTravis.sh b/buildOnTravis.sh index 16f3df981..fbfe5e29c 100755 --- a/buildOnTravis.sh +++ b/buildOnTravis.sh @@ -17,7 +17,7 @@ if [ "$NATS_TEST_SERVER_VERSION" != "" ]; then rel=$(curl -s https://api.github.com/repos/nats-io/nats-server/releases/latest | jq -r '.tag_name') fi - if wget https://github.com/nats-io/nats-server/releases/download/$rel/nats-server-$rel-linux-amd64.tar.gz; then + if [ "$rel" != "${rel#v}" ] && wget https://github.com/nats-io/nats-server/releases/download/$rel/nats-server-$rel-linux-amd64.tar.gz; then tar -xzf nats-server-$rel-linux-amd64.tar.gz mv nats-server-$rel-linux-amd64 $HOME/nats-server-$rel else