fix(secubox-app): jsonfilter compatibility
This commit is contained in:
parent
c40c5e8dbc
commit
154dbcb948
@ -142,17 +142,17 @@ manifest_path() {
|
|||||||
|
|
||||||
manifest_field() {
|
manifest_field() {
|
||||||
local file="$1"; shift
|
local file="$1"; shift
|
||||||
jsonfilter -f "$file" -e "$1" 2>/dev/null || true
|
cat "$file" | jsonfilter -e "$1" 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
manifest_packages() {
|
manifest_packages() {
|
||||||
local file="$1"
|
local file="$1"
|
||||||
jsonfilter -f "$file" -e '@.packages[*]' 2>/dev/null || true
|
cat "$file" | jsonfilter -e '@.packages[*]' 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
manifest_action() {
|
manifest_action() {
|
||||||
local file="$1"; shift
|
local file="$1"; shift
|
||||||
jsonfilter -f "$file" -e "@.actions.$1" 2>/dev/null || true
|
cat "$file" | jsonfilter -e "@.actions.$1" 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
manifest_runtime() {
|
manifest_runtime() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user