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
|
|
|
|
echo "+ pip install requests"
|
|
|
|
INSTALL_OUTPUT=$(pip install requests 2>&1)
|
2022-01-21 18:30:46 +00:00
|
|
|
if [[ $? > 0 ]]; then
|
|
|
|
echo "$INSTALL_OUTPUT"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-01-21 18:52:23 +00:00
|
|
|
echo "+ python bot.py"
|
|
|
|
python bot.py
|