|
|
@ -28,9 +28,9 @@ _zbnc_get_package_json_property_object() { |
|
|
|
local package_json="$1" |
|
|
|
local property="$2" |
|
|
|
cat "$package_json" | |
|
|
|
sed -nE "/^ \"$property\": \{$/,/^ \},?$/p" | |
|
|
|
sed '1d;$d' | |
|
|
|
sed -E 's/ "([^"]+)": "(.+)",?/\1:\2/' |
|
|
|
sed -nE "/^ \"$property\": \{$/,/^ \},?$/p" | # Grab scripts object |
|
|
|
sed '1d;$d' | # Remove first/last lines |
|
|
|
sed -E 's/ "([^"]+)": "(.+)",?/\1:\2/' # Parse into key:value |
|
|
|
} |
|
|
|
|
|
|
|
_zbnc_get_package_json_property_object_keys() { |
|
|
|