replacing a printf with an echo for _egrep_o on a response

This commit is contained in:
Steven M. Miano 2019-02-26 06:31:19 -05:00
parent 26fa51d637
commit 6fb38b3e67

View File

@ -85,7 +85,7 @@ dns_ultra_rm() {
return 1
fi
count=$(printf "%s\n" "$response" | _egrep_o "\"returnedCount\":[^,]*" | cut -d: -f2 | cut -d'}' -f1)
count=$(echo "%s\n" "$response" | _egrep_o "\"returnedCount\":[^,]*" | cut -d: -f2 | cut -d'}' -f1)
_debug count "${count}"
if [ "${count}" = "" ]; then
_info "Text record is not present, will not delete anything."