From b9dc371a1c87ab0504e25a8a0cab87109190197a Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 2 Feb 2023 16:33:01 +0100 Subject: [PATCH] Fixes $app unbound when running ynh_secure_remove Fixes this issue: https://github.com/YunoHost/issues/issues/2138 --- helpers/utils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/utils b/helpers/utils index bc83888e9..cd3b1b8d2 100644 --- a/helpers/utils +++ b/helpers/utils @@ -718,7 +718,7 @@ _acceptable_path_to_delete() { local forbidden_paths=$(ls -d / /* /{var,home,usr}/* /etc/{default,sudoers.d,yunohost,cron*}) # Legacy : A couple apps still have data in /home/$app ... - if [[ -n "$app" ]] + if [[ -n "${app:-}" ]] then forbidden_paths=$(echo "$forbidden_paths" | grep -v "/home/$app") fi