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