Skip to content

Conversation

mirosval
Copy link

I've implemented macOS support using netstat.

@mkarric-slingshot
Copy link

any reason this isn't being merged?

for interface in /sys/class/net/*; do
interfaces+=$(echo $(basename $interface) " ");
done
if [[ -n is_osx ]]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if statement is always true because -n is used to determine if the length of a string is zero.

The correct statement should be if is_osx.

I did a quick fix sainnhe@2e94ad2, you can merge my commit if you would like to.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried if [[ is_osx ]] and it works well!

@ultraon
Copy link

ultraon commented Apr 9, 2022

Can we have a final version merged?

@Rizhiy
Copy link

Rizhiy commented Jan 16, 2023

I guess the maintainer left? Anyone wants to take the mantle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants