#!/bin/sh

set -e

# check to see if gnatsd folder is empty

if [ ! "$(ls -A $HOME/gnatsd)" ]; then
  mkdir -p $HOME/gnatsd
  cd $HOME/gnatsd
  wget https://github.com/nats-io/gnatsd/releases/download/v1.1.0/gnatsd-v1.1.0-linux-amd64.zip -O gnatsd.zip
  unzip gnatsd.zip
  mv gnatsd-v1.1.0-linux-amd64/gnatsd .
else
  echo 'Using cached directory.';
fi

#!/bin/sh

set -e

# check to see if gnatsd folder is empty

if [ ! "$(ls -A $HOME/gnatsd)" ]; then
  mkdir -p $HOME/gnatsd
  cd $HOME/gnatsd
  wget https://github.com/nats-io/gnatsd/releases/download/v1.2.0/gnatsd-v1.2.0-linux-amd64.zip -O gnatsd.zip
  unzip gnatsd.zip
  mv gnatsd-v1.2.0-linux-amd64/gnatsd .
else
  echo 'Using cached directory.';
fi

Update server version used by tests
Update server version used by tests

Signed-off-by: Waldemar Quevedo <2d029dbd3aa3d2941d38f053a387cc1ce6eef7a1@synadia.com>
