From 43ce6efd43993e2d3f6835e257645fd1075852de Mon Sep 17 00:00:00 2001 From: Jali Date: Sun, 21 Sep 2025 02:38:59 +0200 Subject: [PATCH] Fix nonsense created by linter --- services/git-monitor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/git-monitor b/services/git-monitor index b1bf38b..492d6f0 100755 --- a/services/git-monitor +++ b/services/git-monitor @@ -63,8 +63,8 @@ check_for_updates() { fi # Fetch the latest commit hash from the remote repository - git -C "$REPO_LOCAL_PATH/$" fetch origin $BRANCH_NAME - current_commit_hash=$(git -C "$REPO_LOCAL_PATH/$repo_name" origin $BRANCH_NAME) + git -C "$REPO_LOCAL_PATH/$repo_name" fetch origin $BRANCH_NAME + current_commit_hash=$(git -C "$REPO_LOCAL_PATH/$repo_name" rev-parse origin $BRANCH_NAME) if [ -z "$last_commit_hash" ] || [ "$current_commit_hash" != "$last_commit_hash" ]; then log_message "INFO" "New commits detected. Pulling..."