diff --git a/scripts/upgrade b/scripts/upgrade index 4aae438..14e7d60 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -104,7 +104,7 @@ complete_install=false # Check if we need to clean up old bad installs if [ -f "$final_path/package.json" ]; then complete_install=true - rm -rf "$final_path/*" + ynh_secure_remove --file="$final_path/*" fi #=================================================