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 parsing and remove stderr from output #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

flocsy
Copy link

@flocsy flocsy commented Feb 15, 2023

No description provided.

carlnorum and others added 2 commits November 28, 2022 10:50
If a device has fewer than 6 lines in its system profiler description,
it will get merged with the following device in the egrep output. This
patch changes the device splitting logic into an awk script that is
more context aware about the format of the system profiler output.
@phuclv90
Copy link

phuclv90 commented Jun 12, 2023

I have a simpler method to split here #23

-devices=`echo "$rawlog" | egrep -B 2 -A 6 "Product ID" | sed 's/^--/#/'`
+devices=`echo "$rawlog" | sed -e '/:$/i\
+#'`

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