Skip to content

Commit 46b1b31

Browse files
committed
quote var
Signed-off-by: Harper, Jason M <[email protected]>
1 parent 3129a7d commit 46b1b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/script/script_defs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ fi
13311331
duration={{.Duration}} # total duration in seconds
13321332
interval={{.Interval}} # time between readings in seconds
13331333
pdu="{{.PDUHost}}" # PDU hostname or IP address (must not start with protocol like http://, may include port)
1334-
pdu_ip=$(echo $pdu | awk -F/ '{print $NF}' | awk -F: '{print $1}') # remove http:// or https:// and port if present
1334+
pdu_ip=$(echo "$pdu" | awk -F/ '{print $NF}' | awk -F: '{print $1}') # remove http:// or https:// and port if present
13351335
pdu_username="{{.PDUUser}}"
13361336
pdu_password="{{.PDUPassword}}"
13371337
outletgroup="{{.PDUOutlet}}"

0 commit comments

Comments
 (0)