Skip to content

Commit

Permalink
Fix npx call (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Draier committed Jul 6, 2023
1 parent 75a3cbf commit 4009b90
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions env.run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ bash $BASEDIR/env.provision.sh
source $BASEDIR/set-env.sh

echo "$(date +'%d %B %Y - %k:%M') == Fetching the list of installed modules =="
npx --yes @jahia/jahia-reporter@latest utils:modules \
--moduleId="${MODULE_ID}" \
--jahiaUrl="${JAHIA_URL}" \
--jahiaPassword="${SUPER_USER_PASSWORD}" \
--filepath="results/installed-jahia-modules.json"
bash -c "unset npm_config_package; npx --yes @jahia/jahia-reporter@latest utils:modules \
--moduleId=\"${MODULE_ID}\" \
--jahiaUrl=\"${JAHIA_URL}\" \
--jahiaPassword=\"${SUPER_USER_PASSWORD}\" \
--filepath=\"results/installed-jahia-modules.json\""
echo "$(date +'%d %B %Y - %k:%M') == Modules fetched =="
INSTALLED_MODULE_VERSION=$(cat results/installed-jahia-modules.json | jq '.module.version')
if [[ $INSTALLED_MODULE_VERSION == "UNKNOWN" ]]; then
Expand Down

0 comments on commit 4009b90

Please sign in to comment.