wordlebot/run.sh

11 lines
257 B
Bash
Raw Normal View History

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