Release v.1.0.25270.1 #1
@@ -63,8 +63,8 @@ check_for_updates() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Fetch the latest commit hash from the remote repository
|
# Fetch the latest commit hash from the remote repository
|
||||||
git -C "$REPO_LOCAL_PATH/$" fetch origin $BRANCH_NAME
|
git -C "$REPO_LOCAL_PATH/$repo_name" fetch origin $BRANCH_NAME
|
||||||
current_commit_hash=$(git -C "$REPO_LOCAL_PATH/$repo_name" 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
|
if [ -z "$last_commit_hash" ] || [ "$current_commit_hash" != "$last_commit_hash" ]; then
|
||||||
log_message "INFO" "New commits detected. Pulling..."
|
log_message "INFO" "New commits detected. Pulling..."
|
||||||
|
|||||||
Reference in New Issue
Block a user