Removed unused Code
Removed unused code in the Rename script
This commit is contained in:
parent
b64e18779f
commit
849b4c31d0
2 changed files with 2 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
|
||||
/Template
|
||||
Log.txt
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue