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}