Update helpers/app

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
yalh76 2022-03-16 22:46:25 +01:00 committed by GitHub
parent fb53a69dd0
commit 1386466d7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ ynh_remove_apps() {
for i in "${apps_list[@]}"
do
# Retrieve the name of the app (part before _ynh)
local oneapp=$(echo "$i" | awk -F'_ynh' '{print $1}')
local oneapp=$(echo "$i" | awk -F'?' '{print $1}')
[ -z "$oneapp" ] && ynh_die --message="You didn't provided a YunoHost app to remove"
ynh_app_setting_delete --app=$app --key=require_$oneapp