mirror of
https://github.com/Foltik/dotfiles
synced 2024-12-11 05:52:21 -05:00
9 lines
163 B
Plaintext
9 lines
163 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
IP_ADDRESS=$(ip route get 1 | awk '{print $NF;exit}')
|
||
|
|
||
|
if [[ "${IP_ADDRESS}" != "" ]]; then
|
||
|
echo "${IP_ADDRESS}"
|
||
|
echo "${IP_ADDRESS}"
|
||
|
echo ""
|
||
|
fi
|