2024-09-24 05:21:37 +02:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
# shellcheck disable=SC2034
|
|
|
|
dns_myapi_info='omg.lol
|
|
|
|
Based on the omg.lol API, defined at https://api.omg.lol/
|
|
|
|
Domains: omg.lol
|
|
|
|
Site: github.com/acmesh-official/acme.sh/wiki/DNS-API-Dev-Guide
|
|
|
|
Docs: github.com/acmesh-official/acme.sh/wiki/dnsapi#dns_duckdns
|
|
|
|
Options:
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_apikey API Key from omg.lol. This is accesible from the bottom of the account page at https://home.omg.lol/account
|
|
|
|
omg_address This is your omg.lol address, without the preceding @ - you can see your list on your dashboard at https://home.omg.lol/dashboard
|
2024-09-24 05:21:37 +02:00
|
|
|
Issues: github.com/acmesh-official/acme.sh
|
2024-09-29 20:34:34 +02:00
|
|
|
Author: @Kholin <kholin+acme.omglolapi@omg.lol>
|
2024-09-24 05:21:37 +02:00
|
|
|
'
|
|
|
|
|
|
|
|
#returns 0 means success, otherwise error.
|
|
|
|
|
|
|
|
######## Public functions #####################
|
|
|
|
|
|
|
|
# Please Read this guide first: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Dev-Guide
|
|
|
|
|
|
|
|
#Usage: dns_myapi_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
|
|
|
|
dns_omglol_add() {
|
|
|
|
fulldomain=$1
|
|
|
|
txtvalue=$2
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_apikey="${omg_apikey:-$(_readaccountconf_mutable omg_apikey)}"
|
|
|
|
omg_address="${omg_address:-$(_readaccountconf_mutable omg_address)}"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
# As omg.lol includes a leading @ for their addresses, pre-strip this before save
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_address="$(echo "$omg_address" | tr -d '@')"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_saveaccountconf_mutable omg_apikey "$omg_apikey"
|
|
|
|
_saveaccountconf_mutable omg_address "$omg_address"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
_info "Using omg.lol."
|
|
|
|
_debug "Function" "dns_omglol_add()"
|
|
|
|
_debug "Full Domain Name" "$fulldomain"
|
|
|
|
_debug "txt Record Value" "$txtvalue"
|
2024-09-29 20:34:34 +02:00
|
|
|
_secure_debug "omg.lol API key" "$omg_apikey"
|
|
|
|
_debug "omg.lol Address" "$omg_address"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_validate "$omg_apikey" "$omg_address" "$fulldomain"
|
2024-09-24 14:23:39 +02:00
|
|
|
if [ ! $? ]; then
|
|
|
|
return 1
|
|
|
|
fi
|
2024-09-24 05:21:37 +02:00
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
dnsName=$(_getDnsRecordName "$fulldomain" "$omg_address")
|
|
|
|
authHeader="$(_createAuthHeader "$omg_apikey")"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug2 "dns_omglol_add(): Address" "$dnsName"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_add "$omg_address" "$authHeader" "$dnsName" "$txtvalue"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#Usage: fulldomain txtvalue
|
|
|
|
#Remove the txt record after validation.
|
|
|
|
dns_omglol_rm() {
|
|
|
|
fulldomain=$1
|
|
|
|
txtvalue=$2
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_apikey="${omg_apikey:-$(_readaccountconf_mutable omg_apikey)}"
|
|
|
|
omg_address="${omg_address:-$(_readaccountconf_mutable omg_address)}"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
# As omg.lol includes a leading @ for their addresses, strip this in case provided
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_address="$(echo "$omg_address" | tr -d '@')"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
_info "Using omg.lol"
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug "Function" "dns_omglol_rm()"
|
|
|
|
_debug "Full Domain Name" "$fulldomain"
|
|
|
|
_debug "txt Record Value" "$txtvalue"
|
|
|
|
_secure_debug "omg.lol API key" "$omg_apikey"
|
|
|
|
_debug "omg.lol Address" "$omg_address"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_validate "$omg_apikey" "$omg_address" "$fulldomain"
|
2024-09-24 14:23:39 +02:00
|
|
|
if [ ! $? ]; then
|
|
|
|
return 1
|
|
|
|
fi
|
2024-09-24 05:21:37 +02:00
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
dnsName=$(_getDnsRecordName "$fulldomain" "$omg_address")
|
|
|
|
authHeader="$(_createAuthHeader "$omg_apikey")"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_delete "$omg_address" "$authHeader" "$dnsName" "$txtvalue"
|
2024-09-24 05:21:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#################### Private functions below ##################################
|
|
|
|
# Check that the minimum requirements are present. Close ungracefully if not
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_validate() {
|
|
|
|
omg_apikey=$1
|
|
|
|
omg_address=$2
|
2024-09-24 05:21:37 +02:00
|
|
|
fulldomain=$3
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug2 "Function" "dns_validate()"
|
|
|
|
_secure_debug2 "omg.lol API key" "$omg_apikey"
|
|
|
|
_debug2 "omg.lol Address" "$omg_address"
|
|
|
|
_debug2 "Full Domain Name" "$fulldomain"
|
|
|
|
|
|
|
|
if [ "" = "$omg_address" ]; then
|
2024-09-24 05:21:37 +02:00
|
|
|
_err "omg.lol base address not provided. Exiting"
|
2024-09-24 14:23:39 +02:00
|
|
|
return 1
|
2024-09-24 05:21:37 +02:00
|
|
|
fi
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
if [ "" = "$omg_apikey" ]; then
|
2024-09-24 05:21:37 +02:00
|
|
|
_err "omg.lol API key not provided. Exiting"
|
2024-09-24 14:23:39 +02:00
|
|
|
return 1
|
2024-09-24 05:21:37 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
_endswith "$fulldomain" "omg.lol"
|
|
|
|
if [ ! $? ]; then
|
|
|
|
_err "Domain name requested is not under omg.lol"
|
2024-09-24 14:23:39 +02:00
|
|
|
return 1
|
2024-09-24 05:21:37 +02:00
|
|
|
fi
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_endswith "$fulldomain" "$omg_address.omg.lol"
|
2024-09-24 05:21:37 +02:00
|
|
|
if [ ! $? ]; then
|
2024-09-29 20:34:34 +02:00
|
|
|
_err "Domain name is not a subdomain of provided omg.lol address $omg_address"
|
2024-09-24 14:23:39 +02:00
|
|
|
return 1
|
2024-09-24 05:21:37 +02:00
|
|
|
fi
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug "Required environment parameters are all present"
|
2024-09-24 05:21:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Add (or modify) an entry for a new ACME query
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_add() {
|
2024-09-24 05:21:37 +02:00
|
|
|
address=$1
|
|
|
|
authHeader=$2
|
|
|
|
dnsName=$3
|
|
|
|
txtvalue=$4
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_info "Creating DNS entry for $dnsName"
|
|
|
|
_debug2 "omg_add()"
|
|
|
|
_debug2 "omg.lol Address: " "$address"
|
|
|
|
_secure_debug2 "omg.lol authorization header: " "$authHeader"
|
|
|
|
_debug2 "Full Domain name:" "$dnsName.$address.omg.lol"
|
|
|
|
_debug2 "TXT value to set:" "$txtvalue"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
export _H1="$authHeader"
|
|
|
|
|
|
|
|
endpoint="https://api.omg.lol/address/$address/dns"
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Endpoint" "$endpoint"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
payload='{"type": "TXT", "name":"'"$dnsName"'", "data":"'"$txtvalue"'", "ttl":30}'
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Payload" "$payload"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
response=$(_post "$payload" "$endpoint" "" "POST" "application/json")
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_validate_add "$response" "$dnsName.$address" "$txtvalue"
|
2024-09-24 05:21:37 +02:00
|
|
|
}
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_validate_add() {
|
2024-09-24 05:21:37 +02:00
|
|
|
response=$1
|
|
|
|
name=$2
|
|
|
|
content=$3
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug "Validating DNS record addition"
|
|
|
|
_debug2 "omg_validate_add()"
|
|
|
|
_debug3 "Response" "$response"
|
|
|
|
_debug3 "DNS Name" "$name"
|
|
|
|
_debug3 "DNS value" "$content"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
_jsonResponseCheck "$response" "success" "true"
|
|
|
|
if [ "1" = "$?" ]; then
|
|
|
|
_err "Response did not report success"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
_jsonResponseCheck "$response" "message" "Your DNS record was created successfully."
|
|
|
|
if [ "1" = "$?" ]; then
|
|
|
|
_err "Response message did not indicate DNS record was successfully created"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
_jsonResponseCheck "$response" "name" "$name"
|
|
|
|
if [ "1" = "$?" ]; then
|
|
|
|
_err "Response DNS Name did not match the response received"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
_jsonResponseCheck "$response" "content" "$content"
|
|
|
|
if [ "1" = "$?" ]; then
|
|
|
|
_err "Response DNS Name did not match the response received"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_info "Record Created successfully"
|
2024-09-24 05:21:37 +02:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_getRecords() {
|
2024-09-24 05:21:37 +02:00
|
|
|
address=$1
|
|
|
|
authHeader=$2
|
|
|
|
dnsName=$3
|
|
|
|
txtValue=$4
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug2 "omg_getRecords()"
|
|
|
|
_debug3 "omg.lol Address: " "$address"
|
|
|
|
_secure_debug3 "omg.lol Auth Header: " "$authHeader"
|
|
|
|
_debug3 "omg.lol DNS name:" "$dnsName"
|
|
|
|
_debug3 "txt Value" "$txtValue"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
export _H1="$authHeader"
|
|
|
|
|
|
|
|
endpoint="https://api.omg.lol/address/$address/dns"
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Endpoint" "$endpoint"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
payload=$(_get "$endpoint")
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Received Payload:" "$payload"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
# Reformat the JSON to be more parseable
|
|
|
|
recordID=$(echo "$payload" | _stripWhitespace)
|
|
|
|
recordID=$(echo "$recordID" | _exposeJsonArray)
|
|
|
|
|
|
|
|
# Now find the one with the right value, and caputre its ID
|
|
|
|
recordID=$(echo "$recordID" | grep -- "$txtValue" | grep -i -- "$dnsName.$address")
|
|
|
|
_getJsonElement "$recordID" "id"
|
|
|
|
}
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_delete() {
|
2024-09-24 05:21:37 +02:00
|
|
|
address=$1
|
|
|
|
authHeader=$2
|
|
|
|
dnsName=$3
|
|
|
|
txtValue=$4
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_info "Deleting DNS entry for $dnsName with value $txtValue"
|
|
|
|
_debug3 "omg_delete()"
|
|
|
|
_debug3 "omg.lol Address: " "$address"
|
|
|
|
_secure_debug3 "omg.lol Auth Header: " "$authHeader"
|
|
|
|
_debug3 "Full Domain name:" "$dnsName.$address.omg.lol"
|
|
|
|
_debug3 "txt Value" "$txtValue"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
record=$(omg_getRecords "$address" "$authHeader" "$dnsName" "$txtvalue")
|
|
|
|
if [ "" = "$record" ]; then
|
|
|
|
_err "DNS record $address not found!"
|
|
|
|
return 1
|
|
|
|
fi
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
endpoint="https://api.omg.lol/address/$address/dns/$record"
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Endpoint" "$endpoint"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
export _H1="$authHeader"
|
|
|
|
output=$(_post "" "$endpoint" "" "DELETE")
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Response" "$output"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_validate_delete "$output"
|
2024-09-24 05:21:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Validate the response on request to delete. Confirm stastus is success and
|
|
|
|
# Message indicates deletion was successful
|
|
|
|
# Input: Response - HTTP response received from delete request
|
2024-09-29 20:34:34 +02:00
|
|
|
omg_validate_delete() {
|
2024-09-24 05:21:37 +02:00
|
|
|
response=$1
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_info "Validating DNS record deletion"
|
|
|
|
_debug3 "omg_validate_delete()"
|
|
|
|
_debug3 "Response" "$response"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
_jsonResponseCheck "$output" "success" "true"
|
|
|
|
if [ "1" = "$?" ]; then
|
|
|
|
_err "Response did not report success"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
_jsonResponseCheck "$output" "message" "OK, your DNS record has been deleted."
|
|
|
|
if [ "1" = "$?" ]; then
|
|
|
|
_err "Response message did not indicate DNS record was successfully deleted"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_info "Record deleted successfully"
|
2024-09-24 05:21:37 +02:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
########## Utility Functions #####################################
|
|
|
|
# All utility functions only log at debug3
|
|
|
|
_jsonResponseCheck() {
|
|
|
|
response=$1
|
|
|
|
field=$2
|
|
|
|
correct=$3
|
|
|
|
|
|
|
|
correct=$(echo "$correct" | _lower_case)
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "jsonResponseCheck()"
|
|
|
|
_debug3 "Response to parse" "$response"
|
|
|
|
_debug3 "Field to get response from" "$field"
|
|
|
|
_debug3 "What is the correct response" "$correct"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
responseValue=$(_jsonGetLastResponse "$response" "$field")
|
|
|
|
|
|
|
|
if [ "$responseValue" != "$correct" ]; then
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Expected: $correct"
|
|
|
|
_debug3 "Actual: $responseValue"
|
2024-09-24 05:21:37 +02:00
|
|
|
return 1
|
|
|
|
else
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Matched: $responseValue"
|
2024-09-24 05:21:37 +02:00
|
|
|
fi
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
_jsonGetLastResponse() {
|
|
|
|
response=$1
|
|
|
|
field=$2
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "jsonGetLastResponse()"
|
|
|
|
_debug3 "Response provided" "$response"
|
|
|
|
_debug3 "Field to get responses for" "$field"
|
|
|
|
|
2024-09-24 05:21:37 +02:00
|
|
|
responseValue=$(echo "$response" | grep -- "\"$field\"" | cut -f2 -d":")
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Response lines found:" "$responseValue"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
responseValue=$(echo "$responseValue" | sed 's/^ //g' | sed 's/^"//g' | sed 's/\\"//g')
|
|
|
|
responseValue=$(echo "$responseValue" | sed 's/,$//g' | sed 's/"$//g')
|
|
|
|
responseValue=$(echo "$responseValue" | _lower_case)
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Responses found" "$responseValue"
|
|
|
|
_debug3 "Response Selected" "$(echo "$responseValue" | tail -1)"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
echo "$responseValue" | tail -1
|
|
|
|
}
|
|
|
|
|
|
|
|
_stripWhitespace() {
|
|
|
|
tr -d '\n' | tr -d '\r' | tr -d '\t' | sed -r 's/ +/ /g' | sed 's/\\"//g'
|
|
|
|
}
|
|
|
|
|
|
|
|
_exposeJsonArray() {
|
|
|
|
sed -r 's/.*\[//g' | tr '}' '|' | tr '{' '|' | sed 's/|, |/|/g' | tr '|' '\n'
|
|
|
|
}
|
|
|
|
|
|
|
|
_getJsonElement() {
|
|
|
|
content=$1
|
|
|
|
field=$2
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "_getJsonElement()"
|
|
|
|
_debug3 "Input JSON element" "$content"
|
|
|
|
_debug3 "JSON element to isolate" "$field"
|
|
|
|
|
2024-09-24 05:21:37 +02:00
|
|
|
# With a single JSON entry to parse, convert commas to newlines puts each element on
|
|
|
|
# its own line - which then allows us to just grep teh name, remove the key, and
|
|
|
|
# isolate the value
|
|
|
|
output=$(echo "$content" | tr ',' '\n' | grep -- "\"$field\":" | sed 's/.*: //g')
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "String before unquoting: $output"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
_unquoteString "$output"
|
|
|
|
}
|
|
|
|
|
|
|
|
_createAuthHeader() {
|
|
|
|
apikey=$1
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "_createAuthHeader()"
|
|
|
|
_secure_debug3 "Provided API Key" "$apikey"
|
|
|
|
|
2024-09-24 05:21:37 +02:00
|
|
|
authheader="Authorization: Bearer $apikey"
|
2024-09-29 20:34:34 +02:00
|
|
|
_secure_debug3 "Authorization Header" "$authheader"
|
2024-09-24 05:21:37 +02:00
|
|
|
echo "$authheader"
|
|
|
|
}
|
|
|
|
|
|
|
|
_getDnsRecordName() {
|
|
|
|
fqdn=$1
|
|
|
|
address=$2
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "_getDnsRecordName()"
|
|
|
|
_debug3 "FQDN" "$fqdn"
|
|
|
|
_debug3 "omg.lol Address" "$address"
|
|
|
|
|
2024-09-24 05:21:37 +02:00
|
|
|
echo "$fqdn" | sed 's/\.omg\.lol//g' | sed 's/\.'"$address"'$//g'
|
|
|
|
}
|
|
|
|
|
|
|
|
_unquoteString() {
|
|
|
|
output=$1
|
|
|
|
quotes=0
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "_unquoteString()"
|
|
|
|
_debug3 "Possibly quoted string" "$output"
|
|
|
|
|
2024-09-24 05:21:37 +02:00
|
|
|
_startswith "$output" "\""
|
|
|
|
if [ $? ]; then
|
|
|
|
quotes=$((quotes + 1))
|
|
|
|
fi
|
|
|
|
|
|
|
|
_endswith "$output" "\""
|
|
|
|
if [ $? ]; then
|
|
|
|
quotes=$((quotes + 1))
|
|
|
|
fi
|
|
|
|
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Original String: $output"
|
|
|
|
_debug3 "Quotes found: $quotes"
|
2024-09-24 05:21:37 +02:00
|
|
|
|
|
|
|
if [ $((quotes)) -gt 1 ]; then
|
|
|
|
output=$(echo "$output" | sed 's/^"//g' | sed 's/"$//g')
|
2024-09-29 20:34:34 +02:00
|
|
|
_debug3 "Quotes removed: $output"
|
2024-09-24 05:21:37 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
}
|