From bd39fc6bb209bb4a78cf43f341ae72a2a9ed6195 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Thu, 24 Feb 2022 12:34:31 +0100 Subject: [PATCH] chore(pkg-tests.sh): delete dead code --- scripts/pkg-tests.sh | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/scripts/pkg-tests.sh b/scripts/pkg-tests.sh index bf2b3ed6b..0234d8e3f 100755 --- a/scripts/pkg-tests.sh +++ b/scripts/pkg-tests.sh @@ -21,6 +21,8 @@ esac PACKAGE_NAME="${1}" PACKAGE_TYPE="${2}" ARCH="${3}" +# Needed by deploy/package/**/Makefile +export ARCH export DEBUG=1 export CODE_PATH=${CODE_PATH:-"/emqx"} @@ -49,22 +51,6 @@ if ! [ -f "$PACKAGE_FILE" ]; then exit 1 fi -if [ -z "$ARCH" ] -then - case "$(uname -m)" in - x86_64) - ARCH='amd64' - ;; - aarch64) - ARCH='arm64' - ;; - arm*) - ARCH=arm - ;; - esac -fi -export ARCH - emqx_prepare(){ mkdir -p "${PACKAGE_PATH}"