Removed unused Code

Removed unused code in the Rename script
This commit is contained in:
Olai Vike Bøe 2024-05-26 17:16:41 +02:00
parent b64e18779f
commit 849b4c31d0
2 changed files with 2 additions and 3 deletions

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
/Template
/Template
Log.txt

View file

@ -24,7 +24,6 @@ if ($config.options.enableRegularVersion -and -not $config.options.enableForcedV
# Rename the folder if the version was retrieved
if ($chromeVersion) {
$newFolderName = "Chrome - $chromeVersion"
$newFolderPath = Join-Path -Path $PSScriptRoot -ChildPath $newFolderName
try {
Rename-Item -Path $destinationFolder -NewName $newFolderName -ErrorAction Stop
Log-Message "Success: Folder renamed to $newFolderName"
@ -46,7 +45,6 @@ elseif ($config.options.enableForcedVersion -and -not $config.options.enableRegu
# Rename the folder if the version was retrieved
if ($chromeVersion) {
$newFolderName = "Chrome - $chromeVersion" + "_force_update"
$newFolderPath = Join-Path -Path $PSScriptRoot -ChildPath $newFolderName
try {
Rename-Item -Path $forceUpdateFolder -NewName $newFolderName -ErrorAction Stop
Log-Message "Success: Folder renamed to $newFolderName"