fixed sed parameters

This commit is contained in:
Dominik Wild 2017-11-08 10:50:09 +01:00
parent 931f93c5bb
commit b7fb931c4c

View File

@ -169,7 +169,7 @@ _get_recordid() {
return 0
fi
_dns_record_id=$(printf "%s" "$response" | sed -e 's/[^{]*\({[^}]*}\)[^{]*/\1\n/g' | grep "\"text_data\":\"$txtvalue\"" | sed -e 's/.*"id":\([^,]*\).*/\1/')
_dns_record_id=$(printf "%s" "$response" | sed -e 's/[^{]*\({[^}]*}\)[^{]*/\1\n/g' | grep "\"text_data\":\"$txtvalue\"" | sed -n -e 's/.*"id":\([^,]*\).*/\1/p')
return 0
}