rsync-deployments
rsync-deployments copied to clipboard
Improve shell script robustness and error handling
- Added
set -euo pipefailto 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
echowithprintffor 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.
Thank you for your contribution! Will review it
@Burnett01 any news?
looks good so far, I will get back to you