From d3e2804a4d4f88a8beaac476c704685340472f1e Mon Sep 17 00:00:00 2001 From: Sebastien Date: Thu, 1 Mar 2018 13:21:42 +0100 Subject: [PATCH] test branchname --- DownloadLast.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DownloadLast.sh b/DownloadLast.sh index d959e52..7288b86 100755 --- a/DownloadLast.sh +++ b/DownloadLast.sh @@ -5,6 +5,8 @@ data=$(curl -g "https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/lastStabl relativePath=$(grep -oPm1 "(?<=)[^<]+" <<< "$data") jarFile=$(grep -oPm1 "(?<=)[^<]+" <<< "$data") +echo ${BRANCH_NAME} + if [[ $BRANCH_NAME=="master" ]]; then url="https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/lastStableBuild/artifact/"${relativePath} else