Skip to content

Commit 3ca0c88

Browse files
authored
Fix use log_message instead of echo (#4)
* Fix use log_message instead of echo * bumb script version * Update
1 parent aca6029 commit 3ca0c88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sync-ssh-keys.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
SCRIPT_VERSION="0.0.3"
4+
SCRIPT_VERSION="0.0.4"
55

66
# === Load user configuration ===
77
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
88
if [ ! -f "$SCRIPT_DIR/users.conf" ]; then
9-
echo "Error: Configuration file 'users.conf' not found in $SCRIPT_DIR. Halting execution." >&2
9+
log_message "Error: Configuration file 'users.conf' not found in $SCRIPT_DIR. Halting execution." >&2
1010
exit 1
1111
fi
1212
if ! source "$SCRIPT_DIR/users.conf"; then
13-
echo "Error: Failed to load configuration file 'users.conf'. Please check the file for syntax errors. Halting execution." >&2
13+
log_message "Error: Failed to load configuration file 'users.conf'. Please check the file for syntax errors. Halting execution." >&2
1414
exit 1
1515
fi
1616

0 commit comments

Comments
 (0)