diff --git a/fetch b/fetch index bbc7071a..3d4420d3 100755 --- a/fetch +++ b/fetch @@ -1356,8 +1356,7 @@ getlocalip () { ;; *"BSD") - localip="$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' \ - | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')" + localip="$(ifconfig | awk '/broadcast/ {print $2}')" ;; "Windows")