diff options
author | Julio Capote <jcapote@gmail.com> | 2022-08-22 21:40:59 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-08-22 21:40:59 +0000 |
commit | 262ebb5ba628460e12a688be2957db17e1855d23 (patch) | |
tree | 64997a16b9c66ab30f1b6d209ebd3fe9c799d1fd /lib | |
parent | dc63bf274983b9df8249ce050352533c27f7b41b (diff) | |
download | recit-262ebb5ba628460e12a688be2957db17e1855d23.tar.gz |
use $_RECIT_ROOT
Diffstat (limited to '')
-rwxr-xr-x | libexec/recit-recsel-entries | 4 | ||||
-rwxr-xr-x | libexec/recit-recsel-projects | 4 | ||||
-rwxr-xr-x | libexec/recit-setup | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libexec/recit-recsel-entries b/libexec/recit-recsel-entries index f2ca2f9..e447712 100755 --- a/libexec/recit-recsel-entries +++ b/libexec/recit-recsel-entries @@ -4,8 +4,8 @@ set -e 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 "$_RECIT_ROOT/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 "$_RECIT_ROOT/share/recit/templates/entries.templ") fi echo -e "$out" diff --git a/libexec/recit-recsel-projects b/libexec/recit-recsel-projects index 017e3e4..5838dd5 100755 --- a/libexec/recit-recsel-projects +++ b/libexec/recit-recsel-projects @@ -4,8 +4,8 @@ set -e 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 "$_RECIT_ROOT/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 "$_RECIT_ROOT/share/recit/templates/projects.templ") fi echo -e "$out" diff --git a/libexec/recit-setup b/libexec/recit-setup index 9189bcc..bc8ddf7 100755 --- a/libexec/recit-setup +++ b/libexec/recit-setup @@ -12,5 +12,5 @@ if ! [[ "$1" = "force" ]]; then fi fi -cat share/recit/recit.example.rec > "$HOME/.recit.rec" +cat "$_RECIT_ROOT/share/recit/recit.example.rec" > "$HOME/.recit.rec" echo "$HOME/.recit.rec" > "$HOME/.recit.location" |