X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t;h=520e7c34f9b7225c058143cf96b8cb27d9f43196;hb=f3541c5660fe36340eeb0492ed9485cbdbf46e2f;hp=4dec0a51c17846e82355656ede9dd57dafc0d7fb;hpb=b95be35d3b91757a2e2009471e13659888669e02;p=t.git diff --git a/t b/t index 4dec0a5..520e7c3 100755 --- a/t +++ b/t @@ -1,6 +1,6 @@ #!/bin/sh -e # t -- simple notes manager -# Copyright (C) 2013-2019 Sergey Matveev +# Copyright (C) 2013-2020 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