Skip to content

Commit 0986e40

Browse files
committed
feat: Implement Automatic Configuration Backup during re-installs or upgrades
1 parent 35ba3db commit 0986e40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/install/command.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,10 @@ func handleRestoreBackup(backupID string) error {
365365
fmt.Print("Continue? (y/N): ")
366366

367367
var response string
368-
fmt.Scanln(&response)
368+
if _, err := fmt.Scanln(&response); err != nil {
369+
fmt.Println("Restore canceled.")
370+
return nil
371+
}
369372
if response != "y" && response != "Y" {
370373
fmt.Println("Restore canceled.")
371374
return nil

0 commit comments

Comments
 (0)