Skip to content

Commit

Permalink
fix(windows install): fix available backup check (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila authored Jun 26, 2023
1 parent 0a330bd commit 3da09e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (-not (Get-Command -Name spicetify -ErrorAction SilentlyContinue)) {
Invoke-WebRequest @Parameters | Invoke-Expression
}

spicetify path userdata | Out-Null
spicetify | Out-Null
$spiceUserDataPath = (spicetify path userdata)
$marketAppPath = "$spiceUserDataPath\CustomApps\marketplace"
$marketThemePath = "$spiceUserDataPath\Themes\marketplace"
Expand Down Expand Up @@ -54,7 +54,7 @@ Write-Host -Object 'Applying...' -ForegroundColor Cyan
if (-not $isMarketplaceInstalled) {
spicetify config current_theme marketplace
}
if (-not (Test-Path -Path "$spiceUserDataPath\Backup" -PathType Container)) {
if (-not (Test-Path -Path "$spiceUserDataPath\Backup\*")) {
spicetify backup
}
spicetify apply
Expand Down

0 comments on commit 3da09e0

Please sign in to comment.