1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-08-07 06:37:03 +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='./' NOTE_DIR='./'
fi fi
## Must be in notes directory because commands are piped back into bash
cd $NOTE_DIR
main () { main () {
@@ -53,7 +55,7 @@ elif [ $choice == 't' ]; then
## Print the TMSU commands to run to STDOUT (including a CD) ## Print the TMSU commands to run to STDOUT (including a CD)
## Pipe these back to bash ## Pipe these back to bash
hashtags $NOTE_DIR | bash hashtags $NOTE_DIR #| bash
elif [ $choice == 'b' ]; then elif [ $choice == 'b' ]; then
echo "Option $choice selected" #FIXME echo "Option $choice selected" #FIXME
## TODO this should maybe loop back around ? ## TODO this should maybe loop back around ?