From ff03ecb269e8e0ccbe9e4942a0f41e5d9e59baff Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 28 Aug 2021 19:09:25 +0200 Subject: [PATCH] Update remove --- scripts/remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index df0dd73..cd0fc9e 100755 --- a/scripts/remove +++ b/scripts/remove @@ -33,7 +33,7 @@ ynh_secure_remove --file="$final_path" #================================================= # Remove the app data directory with the command `yunohost app remove --purge` -if [ "$YNH_APP_PURGE" == true ] +if [ "${YNH_APP_PURGE:-0}" -eq 1 ] then ynh_script_progression --message="Removing $app data directory..." --weight=2 ynh_secure_remove --file="$datadir"