diff options
-rwxr-xr-x | libexec/recit-edit-entry | 7 |
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}") |