diff options
author | Julio Capote <jcapote@gmail.com> | 2022-07-14 03:40:24 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-07-14 03:40:24 +0000 |
commit | 891f946e86f8a0911f67983d52fccacc9f8ebbad (patch) | |
tree | 36b032deb891f4adf5c047b255eb0ca6da275fef /lib/loader | |
download | recit-891f946e86f8a0911f67983d52fccacc9f8ebbad.tar.gz |
initial
Diffstat (limited to '')
-rw-r--r-- | lib/loader | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/loader b/lib/loader new file mode 100644 index 0000000..9b01d2a --- /dev/null +++ b/lib/loader @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +function load_recit { + local recfile_location + if [[ -f "$HOME/.recit.location" ]]; then + recfile_location=$(cat "$HOME/.recit.location") + else + echo "$HOME/.recit.location not found" + exit 1 + fi + echo "$recfile_location" +}
\ No newline at end of file |