[lang-ref] ( get_ip_address_of_current_host ) ( bash )
@test "get ip address of current host" {
# hostname -I
# ip="$(hostname -I)" # Linux
ip="$(ipconfig getifaddr en1)" # macOS: for my local environment...
[[ "$ip" == 192.168.* ]]
}
@test "get ip address of current host" {
# hostname -I
# ip="$(hostname -I)" # Linux
ip="$(ipconfig getifaddr en1)" # macOS: for my local environment...
[[ "$ip" == 192.168.* ]]
}