More explicit message on deletion

This commit is contained in:
2021-12-01 10:47:20 +01:00
parent 17354fcc6a
commit 6aa187af09

View File

@@ -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)
} }
} }