aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/recit-edit-entry7
1 files changed, 6 insertions, 1 deletions
diff --git a/libexec/recit-edit-entry b/libexec/recit-edit-entry
index 9254753..1ee3d4e 100755
--- a/libexec/recit-edit-entry
+++ b/libexec/recit-edit-entry
@@ -6,7 +6,12 @@ set -e
recfile=$(recit-file)
-uuid=$1
+uuid=""
+if [[ "$1" = "-" ]]; then
+ uuid=$(cat)
+else
+ uuid="$1"
+fi
notes=$(recsel -e "Id = '$uuid'" -t Entry -P Notes "${recfile}")
time=$(recsel -e "Id = '$uuid'" -t Entry -P Time "${recfile}")