Skip to content

Conversation

@locus313
Copy link
Owner

No description provided.

@locus313 locus313 requested a review from Copilot June 23, 2025 15:00

This comment was marked as outdated.

@locus313 locus313 requested a review from Copilot June 23, 2025 15:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the script to use the centralized log_message function for error output and bumps the version.

  • Bumped SCRIPT_VERSION from 0.0.3 to 0.0.4
  • Replaced direct echo calls for errors with log_message ... >&2
Comments suppressed due to low confidence (3)

sync-ssh-keys.sh:4

  • Consider updating any related documentation or changelog entries that reference the script version to align with this bump.
SCRIPT_VERSION="0.0.4"

sync-ssh-keys.sh:9

  • Add or update automated tests (or integration tests) to cover this failure path when the configuration file is missing, ensuring the error is logged and the script exits correctly.
  log_message "Error: Configuration file 'users.conf' not found in $SCRIPT_DIR. Halting execution." >&2

sync-ssh-keys.sh:13

  • [nitpick] To reduce repeated patterns of logging and exiting, consider introducing an exit_with_error helper that calls log_message and exits, centralizing error handling.
  log_message "Error: Failed to load configuration file 'users.conf'. Please check the file for syntax errors. Halting execution." >&2

@locus313 locus313 merged commit 3ca0c88 into main Jun 23, 2025
1 check passed
@locus313 locus313 deleted the log branch June 23, 2025 15:07
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