mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-10-31 23:33:45 +00:00 
			
		
		
		
	Prettier and update bash
This commit is contained in:
		
							parent
							
								
									a0982bfd3a
								
							
						
					
					
						commit
						308b9ff32c
					
				
							
								
								
									
										13
									
								
								externals/install-dotnet.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								externals/install-dotnet.sh
									
									
									
									
										vendored
									
									
								
							| @ -172,7 +172,7 @@ get_current_os_name() { | |||||||
|         return 0 |         return 0 | ||||||
|     elif [ "$uname" = "FreeBSD" ]; then |     elif [ "$uname" = "FreeBSD" ]; then | ||||||
|         echo "freebsd" |         echo "freebsd" | ||||||
|         return 0         |         return 0 | ||||||
|     elif [ "$uname" = "Linux" ]; then |     elif [ "$uname" = "Linux" ]; then | ||||||
|         local linux_platform_name |         local linux_platform_name | ||||||
|         linux_platform_name="$(get_linux_platform_name)" || { echo "linux" && return 0 ; } |         linux_platform_name="$(get_linux_platform_name)" || { echo "linux" && return 0 ; } | ||||||
| @ -728,11 +728,12 @@ downloadcurl() { | |||||||
|     # Append feed_credential as late as possible before calling curl to avoid logging feed_credential |     # Append feed_credential as late as possible before calling curl to avoid logging feed_credential | ||||||
|     remote_path="${remote_path}${feed_credential}" |     remote_path="${remote_path}${feed_credential}" | ||||||
| 
 | 
 | ||||||
|  |     local curl_options="--retry 20 --retry-delay 2 --connect-timeout 15 -sSL -f --create-dirs " | ||||||
|     local failed=false |     local failed=false | ||||||
|     if [ -z "$out_path" ]; then |     if [ -z "$out_path" ]; then | ||||||
|         curl --retry 10 -sSL -f --create-dirs "$remote_path" || failed=true |         curl $curl_options "$remote_path" || failed=true | ||||||
|     else |     else | ||||||
|         curl --retry 10 -sSL -f --create-dirs -o "$out_path" "$remote_path" || failed=true |         curl $curl_options -o "$out_path" "$remote_path" || failed=true | ||||||
|     fi |     fi | ||||||
|     if [ "$failed" = true ]; then |     if [ "$failed" = true ]; then | ||||||
|         say_verbose "Curl download failed" |         say_verbose "Curl download failed" | ||||||
| @ -748,12 +749,12 @@ downloadwget() { | |||||||
| 
 | 
 | ||||||
|     # Append feed_credential as late as possible before calling wget to avoid logging feed_credential |     # Append feed_credential as late as possible before calling wget to avoid logging feed_credential | ||||||
|     remote_path="${remote_path}${feed_credential}" |     remote_path="${remote_path}${feed_credential}" | ||||||
| 
 |     local wget_options="--tries 20 --waitretry 2 --connect-timeout 15 " | ||||||
|     local failed=false |     local failed=false | ||||||
|     if [ -z "$out_path" ]; then |     if [ -z "$out_path" ]; then | ||||||
|         wget -q --tries 10 -O - "$remote_path" || failed=true |         wget -q $wget_options -O - "$remote_path" || failed=true | ||||||
|     else |     else | ||||||
|         wget --tries 10 -O "$out_path" "$remote_path" || failed=true |         wget $wget_options -O "$out_path" "$remote_path" || failed=true | ||||||
|     fi |     fi | ||||||
|     if [ "$failed" = true ]; then |     if [ "$failed" = true ]; then | ||||||
|         say_verbose "Wget download failed" |         say_verbose "Wget download failed" | ||||||
|  | |||||||
| @ -32,7 +32,7 @@ export async function run() { | |||||||
|       const dotnetInstaller = new installer.DotnetCoreInstaller(version); |       const dotnetInstaller = new installer.DotnetCoreInstaller(version); | ||||||
|       await dotnetInstaller.installDotnet(); |       await dotnetInstaller.installDotnet(); | ||||||
|     } |     } | ||||||
|      | 
 | ||||||
|     const sourceUrl: string = core.getInput('source-url'); |     const sourceUrl: string = core.getInput('source-url'); | ||||||
|     const configFile: string = core.getInput('config-file'); |     const configFile: string = core.getInput('config-file'); | ||||||
|     if (sourceUrl) { |     if (sourceUrl) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user