hide pip output

This commit is contained in:
Joseph Montanaro 2022-01-20 11:02:54 -08:00
parent fcdfd667bd
commit bd5c39c595

View File

@ -13,5 +13,7 @@ steps:
SLACK_HOOK_URL: SLACK_HOOK_URL:
from_secret: slack_hook_url from_secret: slack_hook_url
commands: commands:
- pip install requests # only display pip output if command failed
- INSTALL_OUTPUT=$(pip install requests) | true # we don't want to stop execution quite yet
- if [[ ${PIPESTATUS[0]} > 0 ]]; then echo "$INSTALL_OUTPUT"; exit 1; fi # NOW we stop
- python bot.py - python bot.py