@@ -9,7 +9,7 @@ clean=false
99force=false
1010download_retries=5
1111retry_wait_time_seconds=30
12- global_json_file=" ${scriptroot} /../.. /global.json"
12+ global_json_file=" $( dirname " $( dirname " $ {scriptroot}" ) " ) /global.json"
1313declare -A native_assets
1414
1515. $scriptroot /native/common-library.sh
@@ -71,6 +71,7 @@ function ReadGlobalJsonNativeTools {
7171 local native_tools_list=$( echo $native_tools_section | awk -F" [{}]" ' {print $2}' )
7272 native_tools_list=${native_tools_list// [\" ]/ }
7373 native_tools_list=${native_tools_list// ,/ $' \n ' }
74+ native_tools_list=" $( echo -e " ${native_tools_list} " | tr -d ' [:space:]' ) "
7475
7576 local old_IFS=$IFS
7677 while read -r line; do
116117 installer_command+=" --clean"
117118 fi
118119
119- echo " Installing $tool version $tool_version "
120- echo " Executing '$installer_command '"
121120 $installer_command
122121
123122 if [[ $? != 0 ]]; then
@@ -127,19 +126,16 @@ else
127126 done
128127fi
129128
130- if [[ ! -z $clean ]]; then
129+ if [[ $clean = true ]]; then
131130 exit 0
132131fi
133132
134133if [[ -d $install_bin ]]; then
135134 echo " Native tools are available from $install_bin "
136- if [[ ! -z BUILD_BUILDNUMBER ]]; then
137- echo " ##vso[task.prependpath]$install_bin "
138- fi
135+ echo " ##vso[task.prependpath]$install_bin "
139136else
140137 echo " Native tools install directory does not exist, installation failed" >&2
141138 exit 1
142139fi
143140
144141exit 0
145-
0 commit comments