Skip to content

Commit

Permalink
feat(cmd): request to stop the process if backup is outdated (#2588)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila committed Oct 10, 2023
1 parent aa624e6 commit af59de5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@ func checkStates() {

if spotStat.IsMixed() {
utils.PrintInfo(`Spotify client possibly just had an new update.`)
utils.PrintInfo(`Please run "spicetify backup apply".`)
utils.PrintInfo(`Please stop the process and then run "spicetify backup apply".`)

} else if spotStat.IsStock() {
utils.PrintInfo(`Please run "spicetify backup apply".`)
utils.PrintInfo(`Please stop the process and then run "spicetify backup apply".`)

} else {
utils.PrintInfo(`Spotify cannot be backed up at this state. Please re-install Spotify then run "spicetify backup apply".`)
utils.PrintInfo(`Spotify cannot be backed up at this state. Please stop the process and then re-install Spotify then run "spicetify backup apply".`)
}

if !ReadAnswer("Continue anyway? [y/N] ", false, true) {
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func Restore() {
utils.PrintWarning("Spotify version and backup version are mismatched.")

if spotStat.IsBackupable() {
utils.PrintInfo(`Spotify is at stock state. Run "spicetify backup" to backup current Spotify version.`)
utils.PrintInfo(`Spotify is at stock state. Please stop the process and then run "spicetify backup" to backup current Spotify version.`)
}

if !ReadAnswer("Continue restoring anyway? [y/N] ", false, true) {
Expand Down

0 comments on commit af59de5

Please sign in to comment.