From 23e0a6601ac5efa21072cab43647f6f2ff4a8831 Mon Sep 17 00:00:00 2001 From: billz Date: Wed, 19 Feb 2025 01:06:57 -0800 Subject: [PATCH] Fix: replace dirname var w/ destination param --- installers/plugin_helper.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/installers/plugin_helper.sh b/installers/plugin_helper.sh index b3abe5e3..e67e9b41 100755 --- a/installers/plugin_helper.sh +++ b/installers/plugin_helper.sh @@ -88,13 +88,12 @@ case "$action" in exit 1 fi - plugin_js_dir=$(dirname "$destination") - if [ ! -d "$plugin_js_dir" ]; then - mkdir -p "$plugin_js_dir" + if [ ! -d "$destination" ]; then + mkdir -p "$destination" fi cp "$source" "$destination" - chown -R $raspap_user:$raspap_user "$plugin_js_dir" + chown -R $raspap_user:$raspap_user "$destination" echo "OK" ;;