mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 22:21:09 +10:00
fix version offline
This commit is contained in:
+4
-4
@@ -272,9 +272,6 @@ else {
|
|||||||
|
|
||||||
$online = ($onlineFull -split ".g")[0]
|
$online = ($onlineFull -split ".g")[0]
|
||||||
|
|
||||||
# Check version Spotify offline
|
|
||||||
$offline = (Get-Item $spotifyExecutable).VersionInfo.FileVersion
|
|
||||||
|
|
||||||
# Check version Powershell
|
# Check version Powershell
|
||||||
$psv = $PSVersionTable.PSVersion.major
|
$psv = $PSVersionTable.PSVersion.major
|
||||||
if ($psv -ge 7) {
|
if ($psv -ge 7) {
|
||||||
@@ -589,7 +586,10 @@ if ($premium) {
|
|||||||
$spotifyInstalled = (Test-Path -LiteralPath $spotifyExecutable)
|
$spotifyInstalled = (Test-Path -LiteralPath $spotifyExecutable)
|
||||||
|
|
||||||
if ($spotifyInstalled) {
|
if ($spotifyInstalled) {
|
||||||
|
|
||||||
|
# Check version Spotify offline
|
||||||
|
$offline = (Get-Item $spotifyExecutable).VersionInfo.FileVersion
|
||||||
|
|
||||||
# Version comparison
|
# Version comparison
|
||||||
# converting strings to arrays of numbers using the -split operator and a ForEach-Object loop
|
# converting strings to arrays of numbers using the -split operator and a ForEach-Object loop
|
||||||
$arr1 = $online -split '\.' | ForEach-Object { [int]$_ }
|
$arr1 = $online -split '\.' | ForEach-Object { [int]$_ }
|
||||||
|
|||||||
Reference in New Issue
Block a user