Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cmd): request to stop the process if backup is outdated #2588

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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