diff --git a/scripts/upgrade b/scripts/upgrade index b51a367..ee4c1e2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -107,7 +107,7 @@ then # Delete the directory if it's only one character long if [ ${#dirname} -eq 1 ] then - rm -r "$file" + ynh_secure_remove "$file" fi done <<< "$(find "$var_root/$type" -maxdepth 1 -mindepth 1 -type d)" # List all first level directories done