Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macOS support #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add macOS support #10

wants to merge 1 commit into from

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