Skip to content

Commit

Permalink
fix ping resolution newer systems (match only first line of output)
Browse files Browse the repository at this point in the history
Signed-off-by: MarkAckert <[email protected]>
  • Loading branch information
MarkAckert committed Dec 11, 2023
1 parent a5873f9 commit e094157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/zowe-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ then
rc=$?
if [[ -n "$hn" && $rc -eq 0 ]]
then
ZOWE_IP_ADDRESS=`$ping_bin -A ipv4 $hn|sed -n 's/.* (\(.*\)).*/\1/p'`
ZOWE_IP_ADDRESS=`$ping_bin -A ipv4 $hn|sed -n '1 s/.* (\(.*\)).*/\1/p'`
if [[ ! -n "$ZOWE_IP_ADDRESS" ]]
then
echo Error: $ping_bin $hn command failed to find IP
Expand Down

0 comments on commit e094157

Please sign in to comment.