-
Notifications
You must be signed in to change notification settings - Fork 19
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
Support custom path for saving platform details #418
Conversation
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
script/detect-sudo/customize.py
Outdated
@@ -102,7 +104,7 @@ def prompt_sudo(): | |||
print(r.decode('utf-8')) # Decode bytes to string | |||
return 0 | |||
except subprocess.TimeoutExpired: | |||
reset_terminal() # Reset terminal to sane state | |||
reset_terminal() # Reset terminal to same state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sane is correct :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrected in 31723a8
if os_info['platform'] == "windows": | ||
return {'return':1, 'error':'get-platform-details script not yet supported in windows!'} | ||
if os_info['platform'] == "darwin": | ||
i['run_script_input']['script_name'] = "run-macos" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to do this - it happens automatically for different OS flavors
No description provided.