From c93c0959e7e626dcd9237416e9f22d93c294285b Mon Sep 17 00:00:00 2001 From: "Dax T. Games" Date: Wed, 26 Feb 2020 12:21:16 -0500 Subject: [PATCH] Add option to disable bits --- floppy/01-install-wget.cmd | 4 ++++ floppy/_download.cmd | 4 ++++ floppy/_packer_config.cmd | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/floppy/01-install-wget.cmd b/floppy/01-install-wget.cmd index c33f0f48..4087ed2a 100644 --- a/floppy/01-install-wget.cmd +++ b/floppy/01-install-wget.cmd @@ -28,6 +28,10 @@ powershell -Command "(New-Object System.Net.WebClient).DownloadFile('%WGET_URL%' if exist "%filename%" goto exit0 +if defined DISABLE_BITS ( + if "%DISABLE_BITS%" == "1" if not exist "%filename%" goto exit1 +) + set bitsadmin= for %%i in (bitsadmin.exe) do set bitsadmin=%%~$PATH:i diff --git a/floppy/_download.cmd b/floppy/_download.cmd index 434b0f83..1c650eee 100644 --- a/floppy/_download.cmd +++ b/floppy/_download.cmd @@ -60,6 +60,10 @@ if not errorlevel 1 if exist "%filename%" goto exit0 :bitsadmin +if defined DISABLE_BITS ( + if "%DISABLE_BITS%" == "1" if not exist "%filename%" goto exit1 +) + set bitsadmin= for %%i in (bitsadmin.exe) do set bitsadmin=%%~$PATH:i diff --git a/floppy/_packer_config.cmd b/floppy/_packer_config.cmd index e18ca80d..6ede89e2 100644 --- a/floppy/_packer_config.cmd +++ b/floppy/_packer_config.cmd @@ -13,6 +13,11 @@ :: Default: z:\c\packer_logs :: set PACKER_LOG_DIR=z:\c\packer_logs +:: Uncomment the following to disable BITS so scripts can fail instead of hanging when +:: BITS doesn't work right. +:: Default: (unset) +:: set DISABLE_BITS=1 + :: Uncomment the following to change the pagefile size in MB as set by :: floppy/pagefile.bat :: Default: 512