Skip to content

Commit

Permalink
fixed incorrect temp folder path
Browse files Browse the repository at this point in the history
  • Loading branch information
amd64fox committed Dec 31, 2023
1 parent 4892609 commit b34a030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ $spotifyDirectory = Join-Path $env:APPDATA 'Spotify'
$spotifyDirectory2 = Join-Path $env:LOCALAPPDATA 'Spotify'
$spotifyExecutable = Join-Path $spotifyDirectory 'Spotify.exe'
$exe_bak = Join-Path $spotifyDirectory 'Spotify.bak'
$spotifyUninstall = Join-Path $env:TEMP 'SpotifyUninstall.exe'
$spotifyUninstall = Join-Path ([System.IO.Path]::GetTempPath()) 'SpotifyUninstall.exe'
$start_menu = Join-Path $env:APPDATA 'Microsoft\Windows\Start Menu\Programs\Spotify.lnk'

$upgrade_client = $false
Expand Down Expand Up @@ -581,7 +581,7 @@ if (Test-Path -Path $hostsFilePath) {
}

# Unique directory name based on time
Push-Location -LiteralPath $env:TEMP
Push-Location -LiteralPath ([System.IO.Path]::GetTempPath())
New-Item -Type Directory -Name "SpotX_Temp-$(Get-Date -UFormat '%Y-%m-%d_%H-%M-%S')" | Convert-Path | Set-Location

if ($premium) {
Expand Down

0 comments on commit b34a030

Please sign in to comment.