Skip to content

Commit

Permalink
chore: move make jq install check in prerequisite task
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Apr 2, 2024
1 parent acaa0c1 commit aa7af99
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ then
exit 1
fi
echo "✅ \`perl\` installed"
echo "❔ Checking \`jq\` installation..."
if [[ $(jq --version) != jq-1\.7* ]]
then
echo "\n❌ Require jq version 1.7"
exit 1
fi
echo "✅ \`jq\` installed"
'''

[tasks.docs-generate]
Expand All @@ -129,12 +137,6 @@ echo "🧹 Cleaning old documentation..."
rm -rf $SCHEMA_FOLDER
rm -rf $DOCS_FOLDER
if [[ $(jq --version) != jq-1\.7* ]]
then
echo "Error: jq version 1.7 is needed"
exit 1
fi
echo "📚 Generating documentation in ${DOCS_FOLDER} folder..."
mkdir -p $SCHEMA_FOLDER
Expand Down

0 comments on commit aa7af99

Please sign in to comment.