From cafd387a0c07fd26fac0817b5be634c903841b9f Mon Sep 17 00:00:00 2001 From: Krystian Panek Date: Thu, 15 Dec 2022 23:07:05 +0100 Subject: [PATCH] Fixed script --- aemw | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aemw b/aemw index 8db2bee2..bc58eb63 100755 --- a/aemw +++ b/aemw @@ -5,17 +5,18 @@ COMMAND_DEFAULT=${AEMC_COMMAND_DEFAULT:-"setup"} . aem/api.sh +BIN_NAME="aemc-cli" OS=$(detectOs) ARCH=$(detectArch) DOWNLOAD_URL="https://github.com/wttech/aemc/releases/download/v${VERSION}/${BIN_NAME}_${OS}_${ARCH}.tar.gz" -BIN_NAME="aemc-cli" + +# Download or build tool + BIN_ROOT="aem/home/cli/$VERSION" BIN_ARCHIVE_FILE="$BIN_ROOT/$BIN_NAME.tar.gz" BIN_ARCHIVE_DIR="$BIN_ROOT/$BIN_NAME" BIN_EXEC_FILE="$BIN_ARCHIVE_DIR/$BIN_NAME" -# Download or build tool - if [ "$VERSION" = "dev" ]; then make build BIN_EXEC_FILE="bin/aem"