]> Sergey Matveev's repositories - t.git/blobdiff - t
Raise copyright years
[t.git] / t
diff --git a/t b/t
index beac1570f5ccc41da9280c98ee25bfa19d93daa2..520e7c34f9b7225c058143cf96b8cb27d9f43196 100755 (executable)
--- a/t
+++ b/t
@@ -1,6 +1,6 @@
 #!/bin/sh -e
 # t -- simple notes manager
-# Copyright (C) 2013-2017 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2013-2020 Sergey Matveev <stargrave@stargrave.org>
 # 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