mirror of
https://github.com/darkclip/netlist.git
synced 2026-11-13 03:43:52 +08:00
update
This commit is contained in:
1 parent
766df215a6
commit
ed56eebf4a
1 file changed
+1
-1
+1
-1
@@ -180,7 +180,7 @@ get_json_value(){
|
||||
else
|
||||
num=$3;
|
||||
fi;
|
||||
value=$(echo "$json" | awk -F"[,:}]" '{for(i=1;i<=NF;i++){if($i~/'$key'\042/){print $(i+1)}}}' | tr -d '"' | sed -n $(echo $num)p);
|
||||
value=$(echo "$json" | awk -F"[,:}]" '{for(i=1;i<=NF;i++){if($i~/'$key'\042/){print $(i+1)}}}' | tr -d '"' | sed -n $num'p');
|
||||
echo $value;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user