Skip to content

Commit 92d37f6

Browse files
committed
Quote echo $data in _porkbun_rest
Quote echo $data in _porkbun_rest to avoid brace expansion under ksh (OpenBSD).
1 parent aa8cf76 commit 92d37f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dnsapi/dns_porkbun.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ _porkbun_rest() {
134134
api_key_trimmed=$(echo "$PORKBUN_API_KEY" | tr -d '"')
135135
secret_api_key_trimmed=$(echo "$PORKBUN_SECRET_API_KEY" | tr -d '"')
136136

137-
test -z "$data" && data="{" || data="$(echo $data | cut -d'}' -f1),"
137+
test -z "$data" && data="{" || data="$(echo "$data" | cut -d'}' -f1),"
138138
data="$data\"apikey\":\"$api_key_trimmed\",\"secretapikey\":\"$secret_api_key_trimmed\"}"
139139

140140
export _H1="Content-Type: application/json"

0 commit comments

Comments
 (0)