Skip to content

Commit

Permalink
Better dep checking in build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Stortz committed Jul 28, 2016
1 parent 542475e commit d618a52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ function prompt() {
}

# Install necessary python packages
pip install pyyaml xlsxwriter
python -c "import yaml; import xlsxwriter"
if [[ $? -ne 0 ]]; then
echo "Please install pyyaml and xlsxwriter"
echo " $ sudo pip install pyyaml xlsxwriter"
exit 1
fi

# Check if the patched challenges are already there
REGEN=0
Expand Down

0 comments on commit d618a52

Please sign in to comment.