More explicit message on deletion
This commit is contained in:
4
main.go
4
main.go
@@ -42,12 +42,12 @@ func main() {
|
|||||||
response := ""
|
response := ""
|
||||||
for response != "y" && response != "n" {
|
for response != "y" && response != "n" {
|
||||||
response = "n"
|
response = "n"
|
||||||
fmt.Printf("The %s directory already exists, it will be \x1b[31;1mremoved\x1b[0m, do you really want to continue ? [y/N]: ", dirname)
|
fmt.Printf("The %s directory already exists, it will be \x1b[31;1mremoved\x1b[0m!\nDo you really want to continue ? [y/N]: ", dirname)
|
||||||
fmt.Scanf("%s", &response)
|
fmt.Scanf("%s", &response)
|
||||||
response = strings.ToLower(response)
|
response = strings.ToLower(response)
|
||||||
}
|
}
|
||||||
if response == "n" {
|
if response == "n" {
|
||||||
fmt.Println("Cancelled...")
|
fmt.Println("Cancelled")
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user