From da3658a2666193837955fdc09577bb7c82822470 Mon Sep 17 00:00:00 2001 From: Carterpersall Date: Sat, 23 Apr 2022 11:35:01 -0500 Subject: [PATCH] Add check to see if ooshutup10.cfg exists Added if-statement that checks if ooshutup10.cfg exists, if it does then does nothing, if it doesn't then it downloads it. This allows users to put their own preset into the script root directory and it not to be overridden. --- win10debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 741c1fc3..9be37c1c 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -879,7 +879,7 @@ $essentialtweaks.Add_Click({ Write-Host "Running O&O Shutup with Recommended Settings" $ResultText.text += "`r`n" +"Running O&O Shutup with Recommended Settings" Import-Module BitsTransfer - Start-BitsTransfer -Source "https://raw.githubusercontent.com/ChrisTitusTech/win10script/master/ooshutup10.cfg" -Destination ooshutup10.cfg + if(!(Test-Path .\ooshutup10.cfg)){Start-BitsTransfer -Source "https://raw.githubusercontent.com/ChrisTitusTech/win10script/master/ooshutup10.cfg" -Destination ooshutup10.cfg} Start-BitsTransfer -Source "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -Destination OOSU10.exe ./OOSU10.exe ooshutup10.cfg /quiet