Skip to content

Commit

Permalink
fix(windows/install): declare variable in order (spicetify#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrie25 authored Jan 12, 2023
1 parent 867cb40 commit 6be0466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ if ($v) {
$version = $v
}

$log_file_dir = "$sp_dir\install.log"

# Function to log output to file.
Function Log {
Param([String] $ActionText, [String[]] $Texts, [Boolean[]] $Emphasized, [Boolean] $NewLine)
Expand Down Expand Up @@ -84,6 +82,8 @@ if ($PSVersionTable.PSVersion.Major -gt $PSMinVersion) {

# Create %localappdata%\spicetify directory if it doesn't already exist
$sp_dir = "$env:LOCALAPPDATA\spicetify"
$log_file_dir = "$sp_dir\install.log"

if (-not (Test-Path $sp_dir)) {
Log "MAKING FOLDER" -Texts $sp_dir -Emphasized $true
Write-Done
Expand Down

0 comments on commit 6be0466

Please sign in to comment.