From 3d3b319ab11beb93ca0893ef31330f2325c7e8de Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Tue, 24 Aug 2021 10:48:00 +0200 Subject: [PATCH] [enh] Compatibility with previous version --- scripts/remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 43c57b4..ec0cb08 100755 --- a/scripts/remove +++ b/scripts/remove @@ -81,7 +81,7 @@ ynh_secure_remove --file="$final_path" #================================================= # Remove the data directory if --purge option is used -if [ "$YNH_APP_PURGE" -eq 1 ] +if [ "${YNH_APP_PURGE:-0}" -eq 1 ] then ynh_script_progression --message="Removing app data directory..." --time --weight=1 ynh_secure_remove --file="$datadir"