Commit 0a2ab2ae authored by neil's avatar neil Committed by GitHub
Browse files

Merge pull request #813 from shar0119/patch-4

Removed grep -Po
parents 5b3e3d9c 2310a9bb
...@@ -149,7 +149,7 @@ _get_recordid() { ...@@ -149,7 +149,7 @@ _get_recordid() {
return 0 return 0
fi fi
_dns_record_id=$(printf "%s" "$response" | _egrep_o "{[^}]*}" | grep "\"text_data\":\"$txtvalue\"" | grep -Po '"id":\K[0-9]+') _dns_record_id=$(printf "%s" "$response" | _egrep_o "{[^}]*}" | grep "\"text_data\":\"$txtvalue\"" | _egrep_o ",[^,]*," | grep ',"id":' | tr -d ",," | cut -d : -f 2)
return 0 return 0
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment