diff --git a/.gitignore b/.gitignore index b0f297d..701f1b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -/Template \ No newline at end of file +/Template +Log.txt diff --git a/Rename.ps1 b/Rename.ps1 index a30ddf3..b0c6129 100644 --- a/Rename.ps1 +++ b/Rename.ps1 @@ -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"