1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-04-06 19:12:26 +02:00

cd to NOTES_DIR ∵ commands |> back into bash

This commit is contained in:
Ryan Greenup 2020-07-17 03:37:21 +10:00
parent 30b26de707
commit 39d0c180f6

View File

@ -9,6 +9,8 @@ else
NOTE_DIR='./'
fi
## Must be in notes directory because commands are piped back into bash
cd $NOTE_DIR
main () {
@ -53,7 +55,7 @@ elif [ $choice == 't' ]; then
## Print the TMSU commands to run to STDOUT (including a CD)
## Pipe these back to bash
hashtags $NOTE_DIR | bash
hashtags $NOTE_DIR #| bash
elif [ $choice == 'b' ]; then
echo "Option $choice selected" #FIXME
## TODO this should maybe loop back around ?