From a3f890e4197e3217a94338f3cf116f6fbd814b1c Mon Sep 17 00:00:00 2001 From: Sebastien Date: Thu, 1 Mar 2018 15:56:53 +0100 Subject: [PATCH] correct bash typo --- DownloadLast.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DownloadLast.sh b/DownloadLast.sh index af1ca75..f2d0d72 100755 --- a/DownloadLast.sh +++ b/DownloadLast.sh @@ -7,13 +7,14 @@ jarFile=$(grep -oPm1 "(?<=)[^<]+" <<< "$data") echo $1 -if [[ $1="master" ]]; then +if [[ $1 = "master" ]] +then url="https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/lastStableBuild/artifact/"${relativePath} else url="https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle%20Devel/lastStableBuild/artifact/"${relativePath} fi echo ${url} -wget ${url} -O bot.jar +wget ${url} -O bot.jar -q