empty notes doesnt fail
This commit is contained in:
@@ -24,6 +24,9 @@ notes() (
|
||||
_recurse_ids() {
|
||||
local prefix="$1"
|
||||
local json="$2"
|
||||
if echo "$json" | jq .Branches | grep -q ^null$; then
|
||||
return 0
|
||||
fi
|
||||
local b64lines="$(echo "$json" | jq -r '.Branches | keys[]' | base64)"
|
||||
if [ -z "$b64lines" ]; then
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user