aboutsummaryrefslogtreecommitdiff
path: root/libexec/recit-recsel-entries
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-08-21 19:59:42 +0000
committerJulio Capote <jcapote@gmail.com>2022-08-21 19:59:42 +0000
commitcbb86f13226c1008caf0e6ca531e0751c884006c (patch)
tree6f7d9c6fc62556ec38eed8a90ea5d2d5d9b04bdf /libexec/recit-recsel-entries
parent4a44130aadb9981260363730393aa4c62208c7a5 (diff)
downloadrecit-cbb86f13226c1008caf0e6ca531e0751c884006c.tar.gz
fix global cmd
Diffstat (limited to '')
-rwxr-xr-xlibexec/recit-recsel-entries9
1 files changed, 3 insertions, 6 deletions
diff --git a/libexec/recit-recsel-entries b/libexec/recit-recsel-entries
index 5b6070a..f2ca2f9 100755
--- a/libexec/recit-recsel-entries
+++ b/libexec/recit-recsel-entries
@@ -1,14 +1,11 @@
#!/usr/bin/env bash
set -e
-# shellcheck source=/dev/null
-source lib/loader
-
-recfile=$(load_recit)
+recfile=$(recit-file)
if [[ "$1" = "" ]]; then
- out=$(recsel -t Entry "${recfile}" | recfmt -f share/recit/templates/entries.templ)
+ out=$(recsel -t Entry "$recfile" | recfmt -f share/recit/templates/entries.templ)
else
- out=$(recsel -t Entry "${recfile}" -e "$1" | recfmt -f share/recit/templates/entries.templ)
+ out=$(recsel -t Entry "$recfile" -e "$1" | recfmt -f share/recit/templates/entries.templ)
fi
echo -e "$out"