From 3d92bf83245f572861c6b608afbd52992ed5bfa9 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Thu, 1 Mar 2018 15:21:15 +0100 Subject: [PATCH] test --- DownloadLast.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DownloadLast.sh b/DownloadLast.sh index 7288b86..af1ca75 100755 --- a/DownloadLast.sh +++ b/DownloadLast.sh @@ -5,9 +5,9 @@ data=$(curl -g "https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/lastStabl relativePath=$(grep -oPm1 "(?<=)[^<]+" <<< "$data") jarFile=$(grep -oPm1 "(?<=)[^<]+" <<< "$data") -echo ${BRANCH_NAME} +echo $1 -if [[ $BRANCH_NAME=="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}