Missed another typo...

This commit is contained in:
JTruj1ll0923 2022-05-24 20:32:06 -06:00 committed by GitHub
parent 4f73509e78
commit 7352597cf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ fi
function host_check {
INTERNAL_IP="$(hostname -I 2>&1| awk '{print $1}')"
if [ '$(grep -q "hostname: invalid option $INTERNAL_IP' ]; then
if [ '$(grep -q "hostname: invalid option" $INTERNAL_IP' ]; then
INTERNAL_IP="$(ip route show | grep -i default | awk -F' ' '{print $9}')"
fi
}