From 8220286b33d6a62567593f90b70227c12dddd04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 1 Jul 2024 17:12:51 +0200 Subject: [PATCH] Fix test --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 3924433..1b0062a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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