-
Notifications
You must be signed in to change notification settings - Fork 70
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
Improvement to device client setup #259
Conversation
f7020b3
to
0de31d2
Compare
chmod 644 "$CONF_OUTPUT_PATH" | ||
printf ${GREEN} "Configuration has been successfully written to ${CONF_OUTPUT_PATH}" | ||
fi | ||
while [ "$CONFIRMED" != 1 ]; do |
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.
If user enters "n" then it will just keep asking that question without letting them to edit/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.
If they enter 'n' it should go back to the beginning
If they enter anything other than 'y' or 'n' it will ask the question again.
I'm mainly doing this because I have had an issue myself where I accidentally press enter and I have to enter everything over again.
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.
I suppose experienced users of device client will just create a config file from a template but for those who are trying it out for the first time, maybe this will help them in case they press enter by accident
b87f541
to
6acfdc3
Compare
6acfdc3
to
e947cd8
Compare
chmod 644 "$CONF_OUTPUT_PATH" | ||
printf ${GREEN} "Configuration has been successfully written to ${CONF_OUTPUT_PATH}" | ||
fi | ||
while [ "$CONFIRMED" != 1 ]; do |
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.
If user enters "n" then it will just keep asking that question without letting them to edit/correct?
Motivation
Modifications
Change summary
Change fixes the issue, updates documentation and added a small QOL improvement in the setup script (when confirming config file, will no longer loop to the very beginning if the user hits the Enter key without specifying 'y' or 'n'
Testing
Manually tested ./setup.sh
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.