We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dc8f1b commit 74e0aa3Copy full SHA for 74e0aa3
modules/jsonDB.sh
@@ -332,7 +332,7 @@ function jssh_updateArray_async() {
332
# $1 ARRAY name, must be declared with "declare -A ARRAY" before calling
333
Json2Array() {
334
# shellcheck disable=SC1091,SC1090
335
- [ -z "$1" ] || source <( printf "$1"'=( %s )' "$(sed -E -n -e ':x /"text"\]/ { N; s/([^"])\n/\1\\n/g ; tx }' -e '/\["[-0-9a-zA-Z_,."]+"\]\+*\t/ s/\t/=/gp' -e 's/=(true|false)/="\1"/')" )
+ [ -z "$1" ] || source <( printf "$1"'=( %s )' "$(sed -E -n -e '/\["[-0-9a-zA-Z_,."]+"\]\+*\t/ s/\t/=/gp' -e 's/=(true|false)/="\1"/')" )
336
}
337
# get Config Key from jssh file without jsshDB
338
# output ARRAY as JSON.sh style data
0 commit comments