Log the directory change

This commit is contained in:
2025-09-21 01:35:44 +02:00
parent 74dfbec98b
commit 0a0e38e276

View File

@@ -55,6 +55,7 @@ check_for_updates() {
local current_commit_hash
# Get the last known commit hash (from a file)
log_message "INFO" "Changing directory into $REPO_LOCAL_PATH/$repo_name"
cd "$REPO_LOCAL_PATH/$repo_name"
if [ -f "$REPO_LOCAL_PATH/$repo_name/.git-monitor-last-commit" ]; then
last_commit_hash=$(cat "$REPO_LOCAL_PATH/$repo_name/.git-monitor-last-commit")