From 39d0c180f666722b94ea9a1be08588831e6433c9 Mon Sep 17 00:00:00 2001 From: Ryan Greenup Date: Fri, 17 Jul 2020 03:37:21 +1000 Subject: [PATCH] =?UTF-8?q?cd=20to=20NOTES=5FDIR=20=E2=88=B5=20commands=20?= =?UTF-8?q?|>=20back=20into=20bash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/tags/tags-to-TMSU.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/tags/tags-to-TMSU.sh b/bin/tags/tags-to-TMSU.sh index acdc0bc..0854d67 100755 --- a/bin/tags/tags-to-TMSU.sh +++ b/bin/tags/tags-to-TMSU.sh @@ -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 ?