Skip to content

Commit

Permalink
fix init-env
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Oct 6, 2022
1 parent 627c739 commit 6d3906e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-integration/scripts/00-init-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fi

# jdk version
if [[ "$JHI_JDK" == "" ]]; then
JHI_JDK=$(grep -o "JAVA_VERSION = '[^']*'" $JHI_HOME/generators/generator-constants.js | cut -f2 -d "'")
JHI_JDK=$(grep -o "JAVA_VERSION = '[^']*'" $JHI_HOME/generators/generator-constants.cjs | cut -f2 -d "'")
fi

# set correct OpenJDK version
Expand All @@ -92,7 +92,7 @@ if [[ "$JHI_CLI" == "" ]]; then
fi

# node version
JHI_NODE_VERSION=$(grep -o "NODE_VERSION = '[^']*'" $JHI_HOME/generators/generator-constants.js | cut -f2 -d "'")
JHI_NODE_VERSION=$(grep -o "NODE_VERSION = '[^']*'" $JHI_HOME/generators/generator-constants.cjs | cut -f2 -d "'")

# npm version
JHI_NPM_VERSION=$(grep -o '"npm": "[^"]*"' $JHI_HOME/generators/common/templates/package.json | cut -f4 -d '"')
Expand Down

0 comments on commit 6d3906e

Please sign in to comment.