From a506a0b6a5fc1417fa4eb6e40d820227c16b41a1 Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Mon, 23 Mar 2026 10:46:24 +0000 Subject: [PATCH] update minutely cron job script to use git show for file existence check --- cron/minutely.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/minutely.sh b/cron/minutely.sh index 87633d8..a0bd8db 100644 --- a/cron/minutely.sh +++ b/cron/minutely.sh @@ -16,7 +16,7 @@ fi cd "$GIT_ZUE_DEV" || { echo "Failed to change directory to $GIT_ZUE_DEV. PANIC!"; exit 1; } # can we see the docker-compose.yaml file in the repo? -git cat-file HEAD:"$DOCKER_COMPOSE_FILENAME" > /dev/null 2>&1 || { echo "$DOCKER_COMPOSE_FILENAME not found in the repository. PANIC!"; exit 1; } +git show HEAD:"$DOCKER_COMPOSE_FILENAME" > /dev/null 2>&1 || { echo "Failed to find $DOCKER_COMPOSE_FILENAME in the repository. PANIC!"; exit 1; } # compare our local copy of the docker-compose.yaml with the one in the repo if ! git diff --quiet HEAD:"$DOCKER_COMPOSE_FILENAME" "$DOCKER_COMPOSE_DIRECTORY/$DOCKER_COMPOSE_FILENAME"; then -- 2.49.1