alfred-ip-address-workflow icon indicating copy to clipboard operation
alfred-ip-address-workflow copied to clipboard

Error on multiple ip's

Open arvidbjorkstrom opened this issue 4 years ago • 0 comments

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 :)

arvidbjorkstrom avatar Nov 01 '19 10:11 arvidbjorkstrom