From ee89c95e4da5a064948f92d6ef64bf192de61b92 Mon Sep 17 00:00:00 2001 From: Oliver Marriott Date: Fri, 11 Aug 2023 19:19:42 +1000 Subject: [PATCH] fix: check for scripts dir in project root instead of /scripts --- panvimdoc.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/panvimdoc.sh b/panvimdoc.sh index f8659a5..69c5dea 100755 --- a/panvimdoc.sh +++ b/panvimdoc.sh @@ -106,8 +106,9 @@ while [[ $# -gt 0 ]]; do done # Check if /scripts directory exists -if [ -d "/scripts" ]; then - SCRIPTS_DIR="/scripts" +if [ -d "scripts" ]; then + SCRIPTS_DIR="scripts" + echo "SCRIPTS" else SCRIPTS_DIR="$(dirname "$(readlink -f "$0")")/scripts" fi