From c6c6908b1ab770ede9853732ef2751ccab7fb686 Mon Sep 17 00:00:00 2001 From: DingRui Yang Date: Fri, 3 Mar 2023 17:42:58 +0800 Subject: [PATCH] Update build-restic.sh Signed-off-by: DingRui Yang --- hack/build-restic.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hack/build-restic.sh b/hack/build-restic.sh index 3e7f4287f..5859414fd 100755 --- a/hack/build-restic.sh +++ b/hack/build-restic.sh @@ -50,10 +50,6 @@ fi mkdir ${build_path}/restic git clone -b v${RESTIC_VERSION} https://github.com/restic/restic.git ${build_path}/restic pushd ${build_path}/restic -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 +go run build.go --goos "${GOOS}" --goarch "${GOARCH}" --goarm "${GOARM}" -o ${restic_bin} chmod +x ${restic_bin} popd