From 976826598c3822b2d1e518d25730bcd556e17763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sun, 26 Feb 2023 17:03:19 +0100 Subject: [PATCH] no rm -rf --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #=================================================