From 5a6a8e6c7312739e6c99117a78085df65eed8e47 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 16 Jun 2024 14:12:11 +0200 Subject: [PATCH] helpers2.1: fix unecessary change in ynh_read_manifest, key shouldnt need to be prefixed with . --- helpers/helpers.v2.1.d/utils | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/helpers.v2.1.d/utils b/helpers/helpers.v2.1.d/utils index 8326f644f..72196394b 100644 --- a/helpers/helpers.v2.1.d/utils +++ b/helpers/helpers.v2.1.d/utils @@ -148,7 +148,7 @@ ynh_setup_source() { source_id="${source_id:-main}" # =========================================== - local sources_json=$(ynh_read_manifest ".resources.sources[\"$source_id\"]") + local sources_json=$(ynh_read_manifest "resources.sources[\"$source_id\"]") if jq -re ".url" <<< "$sources_json" then local arch_prefix="" @@ -456,7 +456,7 @@ ynh_safe_rm() { # # Requires YunoHost version 3.5.0 or higher. ynh_read_manifest() { - cat $YNH_APP_BASEDIR/manifest.toml | toml_to_json | jq "$1" --raw-output + cat $YNH_APP_BASEDIR/manifest.toml | toml_to_json | jq ".$1" --raw-output } # Return the app upstream version, deduced from `$YNH_APP_MANIFEST_VERSION` and strippig the `~ynhX` part