Replaced `confirm` with Bash `read` command.