Skip to content

Commit

Permalink
Script fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krystian-panek-vmltech committed Dec 15, 2022
1 parent 0502388 commit 0c4063f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions aemw
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#!/usr/bin/env sh

. aem/api.sh

# Download tool

VERSION=${AEMC_VERSION:-"0.5.7"}
COMMAND_DEFAULT=${AEMC_COMMAND_DEFAULT:-"setup"}

. aem/api.sh

OS=$(detectOs)
ARCH=$(detectArch)
DOWNLOAD_URL="https://github.com/wttech/aemc/releases/download/v${VERSION}/${BIN_NAME}_${OS}_${ARCH}.tar.gz"
Expand All @@ -16,6 +14,8 @@ 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
3 changes: 2 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env sh

SOURCE_URL=https://raw.githubusercontent.com/wttech/aemc/main
VERSION=${AEMC_VERSION:-"0.5.7"}
SOURCE_URL=https://raw.githubusercontent.com/wttech/aemc/v${VERSION}

AEM_WRAPPER=aemw
AEM_DIR=aem
Expand Down

0 comments on commit 0c4063f

Please sign in to comment.