From e310271e2757ba7ed66dc9c2fcabd6ce8de9f87e Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 9 Nov 2021 10:42:56 +0100 Subject: chezmoi: fix shellcheck error --- community/chezmoi/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'" -- cgit v1.2.3