mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers2.1: fix unecessary change in ynh_read_manifest, key shouldnt need to be prefixed with .
This commit is contained in:
parent
800f93d12e
commit
5a6a8e6c73
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue