1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/biboumi_ynh.git synced 2024-09-03 18:15:58 +02:00
This commit is contained in:
Salamandar 2024-07-01 17:12:51 +02:00
parent f8b6e79711
commit 8220286b33

View file

@ -16,7 +16,7 @@ _get_metronome_config_dir() {
# multi_instance=false, there's only one
metronome_app=$(yunohost app list --json | jq -r '.apps[] | select(.id == "metronome") | .id')
if (( ${#metronome_apps[@]} == 0 )); then
if [[ -z "${metronome_app:-}" ]]; then
ynh_print_warn --message="Could not find any metronome app!"
return 1
fi