Skip to content

Commit

Permalink
Use WASMER_DIR if present when INSTALL_DIRECTORY is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary authored Jul 11, 2019
1 parent 9e974c7 commit 0583da0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,14 @@ wasmer_download() {

# determine install directory if required
if [ -z "$INSTALL_DIRECTORY" ]; then
# findWasmerBinDirectory INSTALL_DIRECTORY
INSTALL_DIRECTORY="$HOME/.wasmer"
# If WASMER_DIR is present
if [ -z "$WASMER_DIR" ]; then
INSTALL_DIRECTORY=WASMER_DIR
else
# findWasmerBinDirectory INSTALL_DIRECTORY
INSTALL_DIRECTORY="$HOME/.wasmer"
fi
fi
WASMER=INSTALL_DIRECTORY

# assemble expected release artifact name
BINARY="wasmer-${OS}-${ARCH}.tar.gz"
Expand Down

0 comments on commit 0583da0

Please sign in to comment.