print_confirmation: added return 0

This commit is contained in:
Mikhail Tergoev
2025-07-17 15:35:02 +03:00
parent f985c8d92e
commit a3de3240b6

View File

@ -44,11 +44,11 @@ fatal () {
print_confirmation () {
local answer
read -p "$@ (y/N): " answer
if [[ ! "$answer" =~ ^[Yy]$ ]] ; then
print_info "Отменено пользователем."
return 1
fi
return 0
}
##### CHECK VARIABLES #####