animation/common.sh

13 lines
187 B
Bash
Raw Normal View History

2021-09-16 15:05:07 +00:00
#!/bin/bash
askContinue () {
2021-11-29 16:30:51 +00:00
echo "${1}"
2021-09-16 15:05:07 +00:00
echo "Are you ready to continue? (yes/no)"
read input
if [ "$input" != "n" ] && [ "$input" != "no" ]
then
2021-11-29 16:30:51 +00:00
echo "${2}"
2021-09-16 15:05:07 +00:00
else
exit 1
fi
}