diff --git a/plugins/org-mode-manager/orgnotes.sh b/plugins/org-mode-manager/orgnotes.sh index d71c6949..f541edd3 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}' )