mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-12-26 23:26:47 +01:00
Fix: replace dirname var w/ destination param
This commit is contained in:
@@ -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"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user