From 361889230de316e6b0326884945d1e98263e0ed0 Mon Sep 17 00:00:00 2001 From: danrahn Date: Sat, 11 May 2024 20:13:56 -0700 Subject: [PATCH] Adjust Windows version --- DBRepair-Windows.ps1 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/DBRepair-Windows.ps1 b/DBRepair-Windows.ps1 index 6813947..bb2acec 100644 --- a/DBRepair-Windows.ps1 +++ b/DBRepair-Windows.ps1 @@ -3,6 +3,8 @@ # # ######################################################################### +$PlexDBRepairVersion = 'v1.00.00' + class PlexDBRepair { [PlexDBRepairOptions] $Options @@ -11,9 +13,11 @@ class PlexDBRepair { [string] $PlexSQL # Path to 'Plex SQLite.exe' [string] $Timestamp # Timestamp used for temporary database files [string] $LogFile # Path of our log file + [string] $Version # Current script version - PlexDBRepair($Arguments) { + PlexDBRepair($Arguments, $Version) { $this.Options = [PlexDBRepairOptions]::new() + $this.Version = $Version $Commands = $this.PreprocessArgs($Arguments) if ($null -eq $Commands) { return @@ -37,7 +41,7 @@ class PlexDBRepair { Write-Host "`n" Write-Host " Plex Media Server Database Repair Utility (Windows $($OS.Major), Build $($OS.Build))" - Write-Host " Version v1.06.00 " + Write-Host " Version $($this.Version) " Write-Host } @@ -781,4 +785,4 @@ class CleanCacheResult { } } -[void]([PlexDBRepair]::new($args)) +[void]([PlexDBRepair]::new($args, $PlexDBRepairVersion))