helpers: fix previous change about using YNH_APP_ACTION ... which is not defined in config panel context

This commit is contained in:
Alexandre Aubin 2023-04-04 15:55:55 +02:00
parent 17e0a11547
commit 8c25aa9b9f

View file

@ -22,7 +22,7 @@ YNH_APP_BASEDIR=${YNH_APP_BASEDIR:-$(realpath ..)}
ynh_exit_properly() { ynh_exit_properly() {
local exit_code=$? local exit_code=$?
if [[ "${YNH_APP_ACTION}" =~ ^install$|^upgrade$|^restore$ ]] if [[ "${YNH_APP_ACTION:-}" =~ ^install$|^upgrade$|^restore$ ]]
then then
rm -rf "/var/cache/yunohost/download/" rm -rf "/var/cache/yunohost/download/"
fi fi