Skip to content

Commit

Permalink
Update helper.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
xebb82 authored and porkchop committed Dec 11, 2019
1 parent 11372f4 commit 25dd81b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ function cdt-directory-prompt() {
# Ensures EOSIO is installed and compatible via version listed in tests/CMakeLists.txt.
function nodeos-version-check() {
INSTALLED_VERSION=$(echo $($EOSIO_INSTALL_DIR/bin/nodeos --version))
INSTALLED_VERSION_MAJOR=$(echo $INSTALLED_VERSION | cut -f1 -d '.' | sed 's/v//g')
INSTALLED_VERSION_MINOR=$(echo $INSTALLED_VERSION | cut -f2 -d '.' | sed 's/v//g')
INSTALLED_VERSION_MAJOR=$(echo $INSTALLED_VERSION | cut -f1 -d '.' | sed 's/wax-//g')
INSTALLED_VERSION_MINOR=$(echo $INSTALLED_VERSION | cut -f2 -d '.')

if [[ -z $INSTALLED_VERSION_MAJOR || -z $INSTALLED_VERSION_MINOR ]]; then
echo "Could not determine EOSIO version. Exiting..."
Expand All @@ -132,4 +132,4 @@ function nodeos-version-check() {
exit 1;
fi
export CMAKE_FRAMEWORK_PATH="${EOSIO_INSTALL_DIR}:${CDT_INSTALL_DIR}:${CMAKE_PREFIX_PATH}"
}
}

0 comments on commit 25dd81b

Please sign in to comment.