diff options
author | Julio Capote <jcapote@gmail.com> | 2022-09-09 02:16:21 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-09-09 02:16:21 +0000 |
commit | 34067af321b78094f740ec2d5c8086f7d80d7615 (patch) | |
tree | 87250e937b1bb66f7d29d1c920137279cc270863 /libexec | |
parent | d79f13cbcc3fd07b483a9744e87f3e5f3e5860cc (diff) | |
download | recit-34067af321b78094f740ec2d5c8086f7d80d7615.tar.gz |
allow stdin for edit-entry with -
Diffstat (limited to 'libexec')
-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}") |