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 1
1
#! /usr/bin/env bash
2
2
3
3
# Define variables
4
- SCRIPT_DIR =$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && cd .. && pwd )
4
+ PROJECT_ROOT =$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && cd .. && pwd )
5
5
6
6
# ##########################################################################
7
7
# INSTALL .NET CORE CLI
@@ -12,17 +12,17 @@ export DOTNET_CLI_TELEMETRY_OPTOUT=1
12
12
export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0
13
13
export DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2
14
14
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
19
19
fi
20
20
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"
23
23
24
24
# ##########################################################################
25
25
# RUN BUILD SCRIPT
26
26
# ##########################################################################
27
27
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