We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605486f commit 71f1132Copy full SHA for 71f1132
installers/plugin_helper.sh
@@ -71,15 +71,9 @@ case "$action" in
71
exit 1
72
fi
73
74
- dest_dir="$(dirname "$destination")"
75
- if [ -z "$dest_dir" ] || [ "$dest_dir" = "/" ]; then
76
- echo "Error: Unsafe destination path."
77
- exit 1
78
- fi
79
-
80
- mkdir -p "$dest_dir"
81
- chown -R "$raspap_user:$raspap_user" "$dest_dir"
+ mkdir -p "$(dirname "$destination")"
82
cp "$source" "$destination"
+ chown -R $raspap_user:$raspap_user "$destination"
83
84
echo "OK"
85
;;
0 commit comments