From 8a1b3f407b550e9764238dca621539b8414d5dee Mon Sep 17 00:00:00 2001 From: Mehmet Tekman Date: Tue, 29 Aug 2017 19:39:49 +0100 Subject: [PATCH] hotfix -- open existing --- plugins/org-mode-manager/orgnotes.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/org-mode-manager/orgnotes.sh b/plugins/org-mode-manager/orgnotes.sh index d71c6949f..f541edd30 100644 --- a/plugins/org-mode-manager/orgnotes.sh +++ b/plugins/org-mode-manager/orgnotes.sh @@ -52,10 +52,12 @@ Generates an org-notes file in a folder location set in the $org_loc file ;; esac - if [ "$command" = "--delete" ] || [[ "$command" =~ "--move=" ]]; then - else - echo "Unable to parse: $command" - return -1 + if [[ "$command" =~ "--" ]]; then + if [ "$command" = "--delete" ] || [[ "$command" =~ "--move=" ]]; then + else + echo "Unable to parse: $command" + return -1 + fi fi local ext=$( echo $file | awk -F'.' '{print $NF}' )