wordlebot/run.sh
2022-01-21 10:53:32 -08:00

11 lines
257 B
Bash

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