From: Sergey Matveev Date: Wed, 24 Jul 2019 10:35:40 +0000 (+0300) Subject: Exit badly if no note is found X-Git-Url: http://www.git.stargrave.org/?p=t.git;a=commitdiff_plain;h=4dd8f92abb62c142feb6a5ae499d2c5c7ef810d7 Exit badly if no note is found --- diff --git a/t b/t index 4dec0a5..c1c85cc 100755 --- a/t +++ b/t @@ -44,7 +44,8 @@ m) $EDITOR $(get_note $2) ;; *) - cat $(get_note $1) + note=$(get_note $1) + [ -e "$note" ] && cat $note || exit 1 ;; esac purge