@@ -8,19 +8,19 @@ __DOTNET_PATH=$__TOOLRUNTIME_DIR/dotnetcli
8
8
__DOTNET_CMD=$__DOTNET_PATH /dotnet
9
9
if [ -z " $__BUILDTOOLS_SOURCE " ]; then __BUILDTOOLS_SOURCE=https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json; fi
10
10
export __BUILDTOOLS_USE_CSPROJ=true
11
- __BUILD_TOOLS_PACKAGE_VERSION=$( cat $__scriptpath /BuildToolsVersion.txt | sed ' s/\r$//' ) # remove CR if mounted repo on Windows drive
12
- __DOTNET_TOOLS_VERSION=$( cat $__scriptpath /DotnetCLIVersion.txt | sed ' s/\r$//' ) # remove CR if mounted repo on Windows drive
13
- __ILASM_VERSION=$( cat $__scriptpath /tools-local/ILAsmVersion.txt | sed ' s/\r$//' ) # remove CR if mounted repo on Windows drive
11
+ __BUILD_TOOLS_PACKAGE_VERSION=$( cat " $__scriptpath /BuildToolsVersion.txt" | sed ' s/\r$//' ) # remove CR if mounted repo on Windows drive
12
+ __DOTNET_TOOLS_VERSION=$( cat " $__scriptpath /DotnetCLIVersion.txt" | sed ' s/\r$//' ) # remove CR if mounted repo on Windows drive
13
+ __ILASM_VERSION=$( cat " $__scriptpath /tools-local/ILAsmVersion.txt" | sed ' s/\r$//' ) # remove CR if mounted repo on Windows drive
14
14
__BUILD_TOOLS_PATH=$__PACKAGES_DIR /microsoft.dotnet.buildtools/$__BUILD_TOOLS_PACKAGE_VERSION /lib
15
15
__INIT_TOOLS_RESTORE_PROJECT=$__scriptpath /init-tools.msbuild
16
16
__BUILD_TOOLS_SEMAPHORE=$__TOOLRUNTIME_DIR /$__BUILD_TOOLS_PACKAGE_VERSION /init-tools.complete
17
17
18
- if [ -e $__BUILD_TOOLS_SEMAPHORE ]; then
18
+ if [ -e " $__BUILD_TOOLS_SEMAPHORE " ]; then
19
19
echo " Tools are already initialized"
20
20
return # return instead of exit because this script is inlined in other scripts which we don't want to exit
21
21
fi
22
22
23
- if [ -e $__TOOLRUNTIME_DIR ]; then rm -rf -- $__TOOLRUNTIME_DIR ; fi
23
+ if [ -e " $__TOOLRUNTIME_DIR " ]; then rm -rf -- " $__TOOLRUNTIME_DIR " ; fi
24
24
25
25
if [ -d " $DotNetBuildToolsDir " ]; then
26
26
echo " Using tools from '$DotNetBuildToolsDir '."
@@ -36,7 +36,7 @@ if [ -d "$DotNetBuildToolsDir" ]; then
36
36
return # return instead of exit because this script is inlined in other scripts which we don't want to exit
37
37
fi
38
38
39
- echo " Running: $__scriptpath /init-tools.sh" > $__init_tools_log
39
+ echo " Running: $__scriptpath /init-tools.sh" > " $__init_tools_log "
40
40
41
41
display_error_message ()
42
42
{
@@ -65,7 +65,7 @@ execute_with_retry() {
65
65
return 0
66
66
}
67
67
68
- if [ ! -e $__DOTNET_PATH ]; then
68
+ if [ ! -e " $__DOTNET_PATH " ]; then
69
69
if [ -z " $__DOTNET_PKG " ]; then
70
70
if [ " $( uname -m | grep " i[3456]86" ) " = " i686" ]; then
71
71
echo " Warning: build not supported on 32 bit Unix"
@@ -138,7 +138,7 @@ if [ ! -e $__DOTNET_PATH ]; then
138
138
cd $__scriptpath
139
139
fi
140
140
141
- if [ ! -e $__BUILD_TOOLS_PATH ]; then
141
+ if [ ! -e " $__BUILD_TOOLS_PATH " ]; then
142
142
echo " Restoring BuildTools version $__BUILD_TOOLS_PACKAGE_VERSION ..."
143
143
echo " Running: $__DOTNET_CMD restore \" $__INIT_TOOLS_RESTORE_PROJECT \" --no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE /p:BuildToolsPackageVersion=$__BUILD_TOOLS_PACKAGE_VERSION " >> $__init_tools_log
144
144
$__DOTNET_CMD restore " $__INIT_TOOLS_RESTORE_PROJECT " --no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE /p:BuildToolsPackageVersion=$__BUILD_TOOLS_PACKAGE_VERSION >> $__init_tools_log
0 commit comments