File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
15
15
export DOTNET_MULTILEVEL_LOOKUP=0
16
16
export NUGET_PACKAGES=" $SCRIPT_ROOT /packages/"
17
17
18
- " $SCRIPT_ROOT /init-tools.sh"
18
+ source " $SCRIPT_ROOT /init-tools.sh"
19
19
20
20
CLIPATH=" $SCRIPT_ROOT /Tools/dotnetcli"
21
21
SDKPATH=" $CLIPATH /sdk/$SDK_VERSION "
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ __PACKAGES_DIR=$__scriptpath/packages
6
6
__TOOLRUNTIME_DIR=$__scriptpath /Tools
7
7
__DOTNET_PATH=$__TOOLRUNTIME_DIR /dotnetcli
8
8
__DOTNET_CMD=$__DOTNET_PATH /dotnet
9
- if [ -z " $__BUILDTOOLS_SOURCE " ]; then __BUILDTOOLS_SOURCE=https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json; fi
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
11
__BUILD_TOOLS_PACKAGE_VERSION=$( cat $__scriptpath /BuildToolsVersion.txt)
12
12
__DOTNET_TOOLS_VERSION=$( cat $__scriptpath /DotnetCLIVersion.txt)
21
21
22
22
if [ -e $__TOOLRUNTIME_DIR ]; then rm -rf -- $__TOOLRUNTIME_DIR ; fi
23
23
24
- if [ -d " $DotNetBuildToolsDir " ]; then
24
+ if [ -d " ${ DotNetBuildToolsDir:- } " ]; then
25
25
echo " Using tools from '$DotNetBuildToolsDir '."
26
26
ln -s " $DotNetBuildToolsDir " " $__TOOLRUNTIME_DIR "
27
27
38
38
echo " Running: $__scriptpath /init-tools.sh" > $__init_tools_log
39
39
40
40
if [ ! -e $__DOTNET_PATH ]; then
41
- if [ -z " $__DOTNET_PKG " ]; then
41
+ if [ -z " ${ __DOTNET_PKG:- } " ]; then
42
42
if [ " $( uname -m | grep " i[3456]86" ) " = " i686" ]; then
43
43
echo " Warning: build not supported on 32 bit Unix"
44
44
fi
You can’t perform that action at this time.
0 commit comments