feature: show cancel if no reminder provided.

This commit is contained in:
Lucas F. 2024-02-12 12:46:43 -03:00
parent e707ef6aec
commit 1bd8654e1b

1
remind
View file

@ -31,6 +31,7 @@ _remind() {
if [[ -z "$@" ]]; then if [[ -z "$@" ]]; then
echo -e "\033[31mProvide a remind text first.\n\033[0m" echo -e "\033[31mProvide a remind text first.\n\033[0m"
_cancel
else else
read -p 'Time to delay: ' TIMECHOOSEN read -p 'Time to delay: ' TIMECHOOSEN
if [[ -z "$TIMECHOOSEN" ]]; then if [[ -z "$TIMECHOOSEN" ]]; then