File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -12,5 +12,5 @@ if ($Env:DOTNET_INSTALL_DIR) {
12
12
$dotnetRoot = Join-Path $Env: LOCALAPPDATA " Microsoft\dotnet"
13
13
}
14
14
15
- $dotnetRoot >> $Env: GITHUB_PATH
16
- " DONET_ROOT= $dotnetRoot " >> $Env: GITHUB_ENV
15
+ Add-Content - Path $Env: GITHUB_PATH - Value $dotnetRoot
16
+ Add-Content - Path $Env: GITHUB_ENV - Value " DOTNET_ROOT= $dotnetRoot "
Original file line number Diff line number Diff line change 4
4
latest_release_json=$( curl -s https://api.github.com/repos/dotnet/cli-lab/releases/latest)
5
5
download_url=$( echo " $latest_release_json " | grep " browser_download_url" | grep " osx-x64.tar.gz" | cut -d ' "' -f 4)
6
6
filename=$( basename " $download_url " )
7
+ echo $download_url
8
+ echo $filename
9
+ echo $latest_release_json
7
10
curl -L -o " $filename " " $download_url "
8
11
9
12
# Prepare uninstall tool
10
13
tar -xzf " $filename "
11
14
uninstall_tool_path=$( find . -name dotnet-core-uninstall)
12
- chmod +x " $tool_path "
13
- # wait for the tool to be ready
14
- max_retries=30
15
- retry=0
16
- while [[ ! -f " $uninstall_tool_path " && $retry -lt $max_retries ]]; do
17
- sleep 1
18
- (( retry++ ))
19
- done
20
- if [[ $retry -eq $max_retries ]]; then
21
- echo " Uninstall tool was not found after $max_retries seconds." >&2
22
- cat " log.txt"
23
- exit 1
24
- fi
15
+ chmod +x " $uninstall_tool_path "
25
16
26
17
# Perform uninstall
27
18
" $uninstall_tool_path " remove --yes --force --all --aspnet-runtime --verbosity detailed
You can’t perform that action at this time.
0 commit comments