Merge pull request #813 from shar0119/patch-4

Removed grep -Po
This commit is contained in:
neil authored and GitHub committed 2017-05-01 13:54:10 +08:00
commit 0a2ab2aed2
1 file changed
+1 -1
+1 -1
View File
@@ -149,7 +149,7 @@ _get_recordid() {
return 0
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
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.