We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dbd050 commit 3468957Copy full SHA for 3468957
wordpress/wp-post.sh
@@ -98,10 +98,10 @@ resolve_host() {
98
local result=()
99
100
# Try to get IPv4 address
101
- ipv4=$(ping -4 -c 1 "$host" | awk -F'[()]' '{print $2}' | head -n 1)
+ ipv4="$(ping -4 -c 1 "$host" | awk -F'[()]' '{print $2}' | head -n 1)"
102
103
# Fallback to find IP
104
- ip_fallback=$(getent hosts "${host}" | awk '{ print $1 }')
+ ip_fallback="$(getent hosts "${host}" | awk '{ print $1 }')"
105
106
# No IP found
107
if [[ -z "${ipv4}" && -z "${ip_fallback}" ]]; then
0 commit comments