aboutsummaryrefslogtreecommitdiff
path: root/buildtools/packman5/win-bootstrap/fetch_file_from_s3.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/packman5/win-bootstrap/fetch_file_from_s3.cmd')
-rwxr-xr-xbuildtools/packman5/win-bootstrap/fetch_file_from_s3.cmd22
1 files changed, 0 insertions, 22 deletions
diff --git a/buildtools/packman5/win-bootstrap/fetch_file_from_s3.cmd b/buildtools/packman5/win-bootstrap/fetch_file_from_s3.cmd
deleted file mode 100755
index 4e31293..0000000
--- a/buildtools/packman5/win-bootstrap/fetch_file_from_s3.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-:: You need to specify <package-name> <target-path> as input to this command
-@setlocal
-@set PACKAGE_NAME=%1
-@set TARGET_PATH=%2
-
-@echo Fetching %PACKAGE_NAME% from packman-bootstrap over HTTP ...
-
-@powershell -ExecutionPolicy ByPass -NoLogo -NoProfile -File "%~dp0fetch_file_from_s3.ps1" -sourceName %PACKAGE_NAME% ^
- -output %TARGET_PATH%
-:: A bug in powershell prevents the errorlevel code from being set when using the -File execution option
-:: We must therefore do our own failure analysis, basically make sure the file exists and is larger than 0 bytes:
-@if not exist %TARGET_PATH% goto ERROR_DOWNLOAD_FAILED
-@if %~z2==0 goto ERROR_DOWNLOAD_FAILED
-
-@endlocal
-@exit /b 0
-
-:ERROR_DOWNLOAD_FAILED
-@echo Failed to download file from S3
-@echo Most likely because endpoint cannot be reached or file %PACKAGE_NAME% doesn't exist
-@endlocal
-@exit /b 1 \ No newline at end of file