mirror of
https://github.com/Foltik/dotfiles
synced 2024-12-10 21:48:09 -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 |