mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Don't override is_public if it's not a boolean
This commit is contained in:
parent
3620ecc064
commit
c3dc035f23
1 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,12 @@ _INSTALL_APP () {
|
||||||
do
|
do
|
||||||
key="$(echo $arg_override | cut -d '=' -f 1)"
|
key="$(echo $arg_override | cut -d '=' -f 1)"
|
||||||
value="$(echo $arg_override | cut -d '=' -f 2-)"
|
value="$(echo $arg_override | cut -d '=' -f 2-)"
|
||||||
|
|
||||||
|
# (Legacy stuff ... We don't override is_public if its type is not boolean)
|
||||||
|
[[ "$key" == "is_public" ]] \
|
||||||
|
&& [[ "$(jq -r '.arguments.install[] | select(.name=="is_public") | .type' manifest.json)" != "boolean" ]] \
|
||||||
|
&& continue
|
||||||
|
|
||||||
install_args=$(echo $install_args | sed "s@$key=[^&]*\&@$key=$value\&@")
|
install_args=$(echo $install_args | sed "s@$key=[^&]*\&@$key=$value\&@")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue