diff --git a/services/git-monitor b/services/git-monitor index 9e9d3c7..faa83dd 100755 --- a/services/git-monitor +++ b/services/git-monitor @@ -37,9 +37,9 @@ run_after() { initialize_repos() { while read -r repo_name repo_url; do if [ ! -d "$REPO_LOCAL_PATH/$repo_name" ]; then - log_message "INFO" "Repository directory $REPO_LOCAL_PATH/$REOP_NAME does not exist. Cloning..." + log_message "INFO" "Repository directory $REPO_LOCAL_PATH/$repo_name does not exist. Cloning..." mkdir -p "$REPO_LOCAL_PATH/$repo_name" - git clone --depth 1 "$REPO_URL" "$REPO_LOCAL_PATH/$repo_name" + git clone --depth 1 "$repo_url" "$REPO_LOCAL_PATH/$repo_name" if [ $? -ne 0 ]; then log_message "ERROR" "Failed to clone repository. Exiting." exit 1