From 7a52876b72b4f349a16a84919c4026c8cfe67ec6 Mon Sep 17 00:00:00 2001 From: Pavel Zorin Date: Thu, 25 Jan 2024 15:16:45 +0000 Subject: [PATCH] [CI] Abort image building process if the npcap file non found --- Makefile.common | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Makefile.common b/Makefile.common index c2246a79..24a56c0d 100644 --- a/Makefile.common +++ b/Makefile.common @@ -17,14 +17,12 @@ endif endif # Requires login at google storage. -copy-npcap: status=".status.copy-npcap" copy-npcap: - @echo '0' > ${status} -ifeq ($(CI),true) - @gsutil cp gs://$(GS_BUCKET_PATH)/private/$(NPCAP_FILE) ../npcap/lib/$(NPCAP_FILE) || echo '1' > ${status} -else - @echo 'Only available if running in the CI' -endif + ifeq ($(CI),true) + @gsutil cp gs://$(GS_BUCKET_PATH)/private/$(NPCAP_FILE) ../npcap/lib/$(NPCAP_FILE) + else + @echo 'Only available if running in the CI' + endif push: $(MAKE) atomic-push