feature: show cancel if no reminder provided.
This commit is contained in:
parent
e707ef6aec
commit
1bd8654e1b
1 changed files with 1 additions and 0 deletions
1
remind
1
remind
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue