Skip to content

Commit 8257a53

Browse files
committed
curl.sh: prefer or fix to use the local curl to download busybox [ci skip]
1 parent 880dc97 commit 8257a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,8 @@ _VER="$1"
609609
printf "%s\r\n" '@if "%PROCESSOR_ARCHITECTURE%" == "AMD64" set bb=busybox64'
610610
printf "%s\r\n" '@if "%PROCESSOR_ARCHITECTURE%" == "ARM64" set bb=busybox64a'
611611
printf "%s\r\n" '@for %%P in (%PATH:;=;%) do @dir /b "%%~P\busybox.exe" >nul 2>&1 && (set bb_dir=%%~P\& set bb=busybox)'
612-
printf "%s\r\n" '@if not exist "%bb_dir%%bb%.exe" curl -fsSO https://frippery.org/files/busybox/%bb%.exe'
613612
printf "%s\r\n" '@set PATH=%~dp0;%PATH'
613+
printf "%s\r\n" '@if not exist "%bb_dir%%bb%.exe" curl -fsSO https://frippery.org/files/busybox/%bb%.exe'
614614
printf "%s\r\n" '@"%bb_dir%%bb%.exe" sh "%~dp0wcurl" %*'
615615
} > "${_DST}"/bin/wcurl.bat
616616
fi

0 commit comments

Comments
 (0)