aboutsummaryrefslogtreecommitdiff
path: root/libexec/recit-recsel-projects
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-projects
parent4a44130aadb9981260363730393aa4c62208c7a5 (diff)
downloadrecit-cbb86f13226c1008caf0e6ca531e0751c884006c.tar.gz
fix global cmd
Diffstat (limited to '')
-rwxr-xr-xlibexec/recit-recsel-projects9
1 files changed, 3 insertions, 6 deletions
diff --git a/libexec/recit-recsel-projects b/libexec/recit-recsel-projects
index f7778e9..017e3e4 100755
--- a/libexec/recit-recsel-projects
+++ b/libexec/recit-recsel-projects
@@ -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 Project "${recfile}" | recfmt -f share/recit/templates/projects.templ)
+ out=$(recsel -t Project "$recfile" | recfmt -f share/recit/templates/projects.templ)
else
- out=$(recsel -t Project "${recfile}" -e "$1" | recfmt -f share/recit/templates/projects.templ)
+ out=$(recsel -t Project "$recfile" -e "$1" | recfmt -f share/recit/templates/projects.templ)
fi
echo -e "$out"