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

Improve shell script robustness and error handling #65

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

Conversation

nils-kt
Copy link

@nils-kt nils-kt commented Aug 22, 2024

  • Added set -euo pipefail to ensure the script exits on errors, undefined variables, or failed pipelines.
  • Enhanced error handling for SSH agent start and key addition, with clear error messages.
  • Replaced echo with printf for more reliable and formatted output.
  • Introduced optional legacy RSA hostkey handling based on input parameters.
  • Improved overall script readability with clearer variable names and structured conditionals.

- Added `set -euo pipefail` to ensure the script exits on errors, undefined variables, or failed pipelines.
- Enhanced error handling for SSH agent start and key addition, with clear error messages.
- Replaced `echo` with `printf` for more reliable and formatted output.
- Introduced optional legacy RSA hostkey handling based on input parameters.
- Improved overall script readability with clearer variable names and structured conditionals.
@Burnett01
Copy link
Owner

Thank you for your contribution! Will review it

@Burnett01 Burnett01 self-requested a review August 22, 2024 19:08
@nils-kt
Copy link
Author

nils-kt commented Sep 2, 2024

@Burnett01 any news?

@Burnett01
Copy link
Owner

looks good so far, I will get back to you

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.

2 participants