File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33# Define variables
4- SCRIPT_DIR =$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && cd .. && pwd )
4+ PROJECT_ROOT =$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && cd .. && pwd )
55
66# ##########################################################################
77# INSTALL .NET CORE CLI
@@ -12,17 +12,17 @@ export DOTNET_CLI_TELEMETRY_OPTOUT=1
1212export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0
1313export DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2
1414
15- if [ ! -d " $SCRIPT_DIR /.dotnet" ]; then
16- mkdir " $SCRIPT_DIR /.dotnet"
17- curl -Lsfo " $SCRIPT_DIR /.dotnet/dotnet-install.sh" https://dot.net/v1/dotnet-install.sh
18- bash " $SCRIPT_DIR /.dotnet/dotnet-install.sh" --jsonfile ./build/sdk/global.json --install-dir .dotnet --no-path
15+ if [ ! -d " $PROJECT_ROOT /.dotnet" ]; then
16+ mkdir " $PROJECT_ROOT /.dotnet"
17+ curl -Lsfo " $PROJECT_ROOT /.dotnet/dotnet-install.sh" https://dot.net/v1/dotnet-install.sh
18+ bash " $PROJECT_ROOT /.dotnet/dotnet-install.sh" --jsonfile ./build/sdk/global.json --install-dir .dotnet --no-path
1919fi
2020
21- export PATH=" $SCRIPT_DIR /.dotnet" :$PATH
22- export DOTNET_ROOT=" $SCRIPT_DIR /.dotnet"
21+ export PATH=" $PROJECT_ROOT /.dotnet" :$PATH
22+ export DOTNET_ROOT=" $PROJECT_ROOT /.dotnet"
2323
2424# ##########################################################################
2525# RUN BUILD SCRIPT
2626# ##########################################################################
2727
28- dotnet run --configuration Release --project . /build/BenchmarkDotNet.Build/BenchmarkDotNet.Build.csproj -- " $@ "
28+ dotnet run --configuration Release --project " $PROJECT_ROOT /build/BenchmarkDotNet.Build/BenchmarkDotNet.Build.csproj" -- " $@ "
You can’t perform that action at this time.
0 commit comments