X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t;h=c1c85cc5fc9f092273218a06c096e0e48fcb8e20;hb=4dd8f92abb62c142feb6a5ae499d2c5c7ef810d7;hp=dbfcc3aee597e35a438f409fef626e3ed744be7c;hpb=6190dc59d0d028b5defb17dcd773ace0ab76b5ae;p=t.git diff --git a/t b/t index dbfcc3a..c1c85cc 100755 --- a/t +++ b/t @@ -1,6 +1,6 @@ #!/bin/sh -e # t -- simple notes manager -# Copyright (C) 2013-2016 Sergey Matveev +# Copyright (C) 2013-2019 Sergey Matveev # Invoke the script without any arguments to briefly print all notes. # Otherwise you can specify the following ones: # a -- add new note (either starts an editor if not arguments are specified, @@ -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