[enh] Compatibility with previous version

This commit is contained in:
ljf (zamentur) 2021-08-24 10:48:00 +02:00 committed by GitHub
parent a4d415bf5c
commit 3d3b319ab1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"