Revision 2a46fd67267716efd58311064e4a91abfa2a0a1c authored by Joe Stringer on 01 September 2021, 19:58:41 UTC, committed by Joe Stringer on 01 September 2021, 22:03:22 UTC
Signed-off-by: Joe Stringer <joe@cilium.io>
1 parent 430e348
Raw File
print-node-ip.sh
#!/bin/bash

set -e

case "$(uname -s)" in
    Darwin*) ipconfig getifaddr en0 ;;
    *)       hostname -I | cut -d " " -f 1
esac
back to top