From ec7ca038b42dd4b357e62926f0317e93b89cf224 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Sun, 2 Apr 2023 18:51:38 +0300 Subject: [PATCH] fix version offline --- Install.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index cfaf899..29691da 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -272,9 +272,6 @@ else { $online = ($onlineFull -split ".g")[0] -# Check version Spotify offline -$offline = (Get-Item $spotifyExecutable).VersionInfo.FileVersion - # Check version Powershell $psv = $PSVersionTable.PSVersion.major if ($psv -ge 7) { @@ -589,7 +586,10 @@ if ($premium) { $spotifyInstalled = (Test-Path -LiteralPath $spotifyExecutable) if ($spotifyInstalled) { - + +# Check version Spotify offline +$offline = (Get-Item $spotifyExecutable).VersionInfo.FileVersion + # Version comparison # converting strings to arrays of numbers using the -split operator and a ForEach-Object loop $arr1 = $online -split '\.' | ForEach-Object { [int]$_ }