Skip to content

Commit

Permalink
fix: correct spotifyPath inside update cmd (#2685)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri authored Nov 27, 2023
1 parent a675c71 commit c2a0054
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spicetify.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"log"
"os"
"os/exec"
"path/filepath"
"runtime"
"slices"
"strings"
Expand Down Expand Up @@ -239,7 +240,8 @@ func main() {
ex = "spicetify"
}

spotStat := spotifystatus.Get(utils.FindAppPath())
spotifyPath := filepath.Join(utils.FindAppPath(), "Apps")
spotStat := spotifystatus.Get(spotifyPath)
cmds := []string{"backup", "apply"}
if !spotStat.IsBackupable() {
cmds = append([]string{"restore"}, cmds...)
Expand Down

0 comments on commit c2a0054

Please sign in to comment.