Skip to content

Commit

Permalink
Fixed script
Browse files Browse the repository at this point in the history
  • Loading branch information
krystian-panek-vmltech committed Dec 15, 2022
1 parent 0c4063f commit cafd387
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aemw
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cafd387

Please sign in to comment.