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

Fix regex in determining other hostname #38

Merged
merged 4 commits into from
Sep 20, 2023

Conversation

xlr91
Copy link
Contributor

@xlr91 xlr91 commented Sep 19, 2023

Fix a bug in which the line machine_hostname=$(ifconfig | grep 'inet ' | grep -v '127' | awk '{ print $2 }' | head -n 1 | cut -d '/' -f 1) will completely fail, because of the chance that the other ip address will contain a 127 as well, eg 172.24.127.255

@xlr91 xlr91 changed the title Fix regex Fix regex in determining other hostname Sep 19, 2023
run_demo.sh Outdated Show resolved Hide resolved
run_demo.sh Outdated Show resolved Hide resolved
@chrisburr chrisburr merged commit 0e201b2 into DIRACGrid:master Sep 20, 2023
3 checks passed
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.

3 participants