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
  • Loading branch information
rhafer committed Oct 12, 2023
1 parent 8396497 commit 3afd93e
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 3afd93e

Please sign in to comment.