alfred-ip-address-workflow
alfred-ip-address-workflow copied to clipboard
Error on multiple ip's
If the computer has multiple IP's (in my case because of virtual machines running on my computer) the workflow just fails. I've fixed it in a quite hacky way for now by replacing the local ipv4 line with
ifconfig | grep 'inet ' | grep -Fv 127.0.0.1 | head -n 1 | awk '{print $2}'
When I get time i'll get on doing a nicer fix and creating a pull request if no one bets me to it :)