File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 5656
5757# Download the file if it doesn't exist in the shared downloads directory
5858if [ ! -f " ${SHARED_DOWNLOADS_DIRECTORY} /${filename} " ] ; then
59- echo " download: Downloading ${filename} from ${downloadUrl} "
59+ echo " download: Downloading ${filename} from ${downloadUrl} into ${SHARED_DOWNLOADS_DIRECTORY} "
6060
6161 # Download the file
6262 if ! curl -L --fail-with-body -o " ${SHARED_DOWNLOADS_DIRECTORY} /${filename} " " ${downloadUrl} " ; then
Original file line number Diff line number Diff line change 1313# Overrideable constants
1414ARTIFACTS_DIRECTORY=${ARTIFACTS_DIRECTORY:- " artifacts" }
1515SHARED_DOWNLOADS_DIRECTORY=" ${SHARED_DOWNLOADS_DIRECTORY:- $(dirname " $( pwd ) " )/ downloads} "
16+ echo " downloadMavenArtifact: SHARED_DOWNLOADS_DIRECTORY=${SHARED_DOWNLOADS_DIRECTORY} " # TODO deactivate, only for debugging
1617
1718# Default and initial values for command line options
1819groupId=" "
5859# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
5960# This way non-standard tools like readlink aren't needed.
6061SCRIPTS_DIR=${SCRIPTS_DIR:- $( CDPATH=. cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " && pwd -P )}
61- # echo "downloadMavenArtifact: SCRIPTS_DIR=$SCRIPTS_DIR"
62+ echo " downloadMavenArtifact: SCRIPTS_DIR=$SCRIPTS_DIR " # TODO deactivate, only for debugging
6263
6364# Internal constants
6465BASE_URL=" https://repo1.maven.org/maven2"
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ echo "download${ANALYSIS_NAME}: ARTIFACTS_VERSION=${ARTIFACTS_VERSION}"
3232# Even if $BASH_SOURCE is made for Bourne-like shells it is also supported by others and therefore here the preferred solution.
3333# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
3434# This way non-standard tools like readlink aren't needed.
35- ANALYSIS_SCRIPT_DIR =${ANALYSIS_SCRIPT_DIR :- $( CDPATH=. cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " && pwd -P )}
36- echo " download${ANALYSIS_NAME} : ANALYSIS_SCRIPT_DIR =${ANALYSIS_SCRIPT_DIR } "
35+ DOWNLOADER_SCRIPTS_DIR =${DOWNLOADER_SCRIPTS_DIR :- $( CDPATH=. cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " && pwd -P )}
36+ echo " download${ANALYSIS_NAME} : DOWNLOADER_SCRIPTS_DIR =${DOWNLOADER_SCRIPTS_DIR } "
3737
3838# Get the "scripts" directory by taking the path of this script and going one directory up.
39- SCRIPTS_DIR=${SCRIPTS_DIR:- $(dirname -- " ${ANALYSIS_SCRIPT_DIR } " )}
39+ SCRIPTS_DIR=${SCRIPTS_DIR:- $(dirname -- " ${DOWNLOADER_SCRIPTS_DIR } " )}
4040echo " download${ANALYSIS_NAME} : SCRIPTS_DIR=${SCRIPTS_DIR} "
4141
4242# ###############################################################
You can’t perform that action at this time.
0 commit comments