Change into the directory before pulling

This commit is contained in:
2025-09-21 00:56:00 +02:00
parent 4fc3a849f6
commit 294997fe27

View File

@@ -43,6 +43,7 @@ check_for_updates() {
local current_commit_hash
# Get the last known commit hash (from a file)
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")
else