From 3c671a7c09b7caa4bd729d557aa6cb63ef397805 Mon Sep 17 00:00:00 2001 From: DingRui Yang Date: Thu, 2 Mar 2023 21:11:45 +0800 Subject: [PATCH] Fix miss ${GOARM}" parameter in build-restic.sh Signed-off-by: DingRui Yang --- hack/build-restic.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hack/build-restic.sh b/hack/build-restic.sh index 5859414fd..3e7f4287f 100755 --- a/hack/build-restic.sh +++ b/hack/build-restic.sh @@ -50,6 +50,10 @@ fi mkdir ${build_path}/restic git clone -b v${RESTIC_VERSION} https://github.com/restic/restic.git ${build_path}/restic pushd ${build_path}/restic -go run build.go --goos "${GOOS}" --goarch "${GOARCH}" --goarm "${GOARM}" -o ${restic_bin} +if [ -z "${GOARM}" ]; then + go run build.go --goos "${GOOS}" --goarch "${GOARCH}" -o ${restic_bin} +else + go run build.go --goos "${GOOS}" --goarch "${GOARCH}" --goarm "${GOARM}" -o ${restic_bin} +fi chmod +x ${restic_bin} popd