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 12, 2023

Verified

This commit was signed with the committer’s verified signature.
xenosf Xenos F.
1 parent 45df2ce commit 1c6a286
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
@@ -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)

0 comments on commit 1c6a286

Please sign in to comment.