From 3afd93e1a23e2f28de2ce894cad1f8b1af27d47b Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 12 Oct 2023 15:23:18 +0200 Subject: [PATCH] Fix tmp dir creation in Makefile This fixes the previous commit to correctly initialize the CALENS_DIR variable --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e6867080a9..8b4ab02ecf 100644 --- a/Makefile +++ b/Makefile @@ -41,9 +41,9 @@ lint-fix: $(GOLANGCI_LINT) gofmt -w . $(GOLANGCI_LINT) run --fix +CALENS_DIR := $(shell mktemp -d) $(CALENS): @mkdir -p $(@D) - CALENS_DIR=`mktemp -d` git clone --depth 1 --branch v0.2.0 -c advice.detachedHead=false https://github.com/restic/calens.git $(CALENS_DIR) cd $(CALENS_DIR) && GOBIN=$(@D) go install rm -rf $(CALENS_DIR)