wordlebot/run.sh
2022-01-21 10:52:23 -08:00

12 lines
276 B
Bash

# capture output so we can display conditionally
# also simulate -x manually just for the heck of it
echo "+ pip install requests"
INSTALL_OUTPUT=$(pip install requests 2>&1)
if [[ $? > 0 ]]; then
echo "$INSTALL_OUTPUT"
exit 1
fi
echo "+ python bot.py"
python bot.py