From 46992d809391b915c2734948fd2a44ff0a2a36a4 Mon Sep 17 00:00:00 2001 From: Grigory Date: Sat, 15 Jul 2023 22:41:43 +0500 Subject: [PATCH] fix(install): get userdata path without spicetify call --- resources/install.ps1 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/resources/install.ps1 b/resources/install.ps1 index f03b9c19..cb8ffb95 100644 --- a/resources/install.ps1 +++ b/resources/install.ps1 @@ -12,12 +12,7 @@ if (-not (Get-Command -Name spicetify -ErrorAction SilentlyContinue)) { Invoke-WebRequest @Parameters | Invoke-Expression } -spicetify path userdata | Out-Null -$spiceUserDataPath = spicetify path userdata -if ($LASTEXITCODE) { - Write-Host -Object "Something is wrong with your Spicetify installation. Check the message below." -ForegroundColor Red - throw $spiceUserDataPath -} +$spiceUserDataPath = "$env:APPDATA\spicetify" $marketAppPath = "$spiceUserDataPath\CustomApps\marketplace" $marketThemePath = "$spiceUserDataPath\Themes\marketplace" $isThemeInstalled = $(