Don't override is_public if it's not a boolean

This commit is contained in:
Alexandre Aubin 2020-12-18 23:40:00 +01:00
parent 3620ecc064
commit c3dc035f23

View file

@ -31,6 +31,12 @@ _INSTALL_APP () {
do
key="$(echo $arg_override | cut -d '=' -f 1)"
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\&@")
done