Skip to content

Commit

Permalink
Vultr: fix "grep: repetition-operator operand invalid" on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
skyksandr committed Aug 24, 2022
1 parent eb27013 commit 405d6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsapi/dns_vultr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ _get_root() {
return 1
fi

if printf "%s\n" "$response" | grep '^\{.*\}' >/dev/null; then
if printf "%s\n" "$response" | grep -E '^\{.*\}' >/dev/null; then
if _contains "$response" "\"domain\":\"$_domain\""; then
_sub_domain="$(echo "$fulldomain" | sed "s/\\.$_domain\$//")"
return 0
Expand Down

0 comments on commit 405d6df

Please sign in to comment.