Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Commit

Permalink
[Y/n]: yes is default
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Korolev committed Nov 25, 2014
1 parent 3ef6932 commit 13b6661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ func printChangeList(changes []*Change, isNoPrompt bool) bool {
if isNoPrompt {
return true
}
var input string
input := "Y"
fmt.Print("Proceed with the changes? [Y/n]: ")
fmt.Scan(&input)
fmt.Scanln(&input)
return strings.ToUpper(input) == "Y"
}

0 comments on commit 13b6661

Please sign in to comment.