adjust script output
This commit is contained in:
parent
935eb6cc51
commit
48027afd0e
@ -13,5 +13,4 @@ steps:
|
||||
SLACK_HOOK_URL:
|
||||
from_secret: slack_hook_url
|
||||
commands:
|
||||
- chmod +x run.sh
|
||||
- ./run.sh
|
||||
- bash run.sh
|
||||
|
8
run.sh
8
run.sh
@ -1,10 +1,10 @@
|
||||
set +x
|
||||
|
||||
# capture output so we can display conditionally
|
||||
INSTALL_OUTPUT=$(pip install requests)
|
||||
# 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
|
||||
python bot.py
|
||||
|
Loading…
x
Reference in New Issue
Block a user