Skip to content

Commit

Permalink
Fix tmp dir creation in Makefile
Browse files Browse the repository at this point in the history
This fixes the previous commit to correctly initialize the CALENS_DIR
variable

(cherry picked from commit 3afd93e)
  • Loading branch information
rhafer committed Oct 16, 2023
1 parent 848fb23 commit dea8969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dea8969

Please sign in to comment.