Skip to content

Commit 254ee6b

Browse files
committed
ci: install hauler only if not found
Signed-off-by: Tyler Gillson <[email protected]>
1 parent 7e21122 commit 254ee6b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ haul: hauler ## Generate Hauls for latest release
3636
HAULER_VERSION ?= 1.0.4
3737
.PHONY: hauler
3838
hauler: ## Install hauler
39-
curl -sfL https://get.hauler.dev | HAULER_VERSION=$(HAULER_VERSION) bash
39+
@command -v hauler >/dev/null 2>&1 || { \
40+
echo "Hauler version $(HAULER_VERSION) not found, downloading..."; \
41+
curl -sfL https://get.hauler.dev | HAULER_VERSION=$(HAULER_VERSION) bash; \
42+
}
4043
HAULER = /usr/local/bin/hauler

0 commit comments

Comments
 (0)