1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jitsi_ynh.git synced 2024-09-03 19:35:57 +02:00
This commit is contained in:
yalh76 2022-03-06 15:32:27 +01:00
parent 8f1a265134
commit 23806c1bef

View file

@ -49,11 +49,11 @@ ynh_install_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'_ynh' '{print $1}')
[ -z "$oneapp" ] && ynh_die --message="You didn't provided a YunoHost app to install"
# Retrieve the arguments of the app (part after ?)
local oneargument=$(echo "$i" | awk -F'[?]' '{print $2}')
local oneargument=$(echo "$i" | awk -F'?' '{print $2}')
[ ! -z "$oneargument" ] && oneargument="--args \"$oneargument\""
if ! yunohost app list | grep -q "$oneapp"
@ -91,7 +91,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'_ynh' '{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