From 59a957629b5d8bad2a31503bd18a1a1514911d10 Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Tue, 15 Jun 2021 14:02:31 +0300 Subject: [PATCH] Fix starting directory bug --- util/notegrep.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/notegrep.sh b/util/notegrep.sh index 5af5f4d..fa5f883 100644 --- a/util/notegrep.sh +++ b/util/notegrep.sh @@ -116,10 +116,11 @@ function notegrep() { else echo "This note doesn't exist in $DEFAULT_PATH." fi - + cd $DIR } check_params() { + case $option in parameter) #parameter script import... @@ -130,6 +131,7 @@ function notegrep() { ;; esac + } if [ $# -eq 0 ]; then