aboutsummaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-11-09 10:42:56 +0100
committerCem Keylan <cem@ckyln.com>2021-11-09 10:42:56 +0100
commite310271e2757ba7ed66dc9c2fcabd6ce8de9f87e (patch)
treeaae0783c5463c3e11274e04b5031b0f853189368 /community
parent9a566f2e2e4a532f05f5e71e1fabc997a30c943f (diff)
downloadrepository-e310271e2757ba7ed66dc9c2fcabd6ce8de9f87e.tar.gz
chezmoi: fix shellcheck error
Diffstat (limited to 'community')
-rwxr-xr-xcommunity/chezmoi/build4
1 files changed, 3 insertions, 1 deletions
diff --git a/community/chezmoi/build b/community/chezmoi/build
index 3e41b9ce..c42675ae 100755
--- a/community/chezmoi/build
+++ b/community/chezmoi/build
@@ -1,7 +1,9 @@
#!/bin/sh -e
-export GOPATH=$PWD/gopath
+export GOPATH="$PWD/gopath"
+
trap "go clean -modcache" EXIT INT
+
go mod vendor
date=$(date -u +%Y-%m-%dT%H:%M:%SZ)
CGO_ENABLED=0 go build -ldflags="-X 'main.version=$2' -X 'main.commit=null' -X 'main.builtBy=cpt' -X 'main.date=$date'"