diff --git a/.drone.yml b/.drone.yml index 289960a..f6326f6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,5 +13,4 @@ steps: SLACK_HOOK_URL: from_secret: slack_hook_url commands: - - chmod +x run.sh - - ./run.sh \ No newline at end of file + - bash run.sh diff --git a/run.sh b/run.sh index 9909cb0..0602ce6 100644 --- a/run.sh +++ b/run.sh @@ -1,10 +1,11 @@ -set +x - # capture output so we can display conditionally -INSTALL_OUTPUT=$(pip install requests) +# also simulate -x manually just for the heck of it +echo "+ pip install requests" +INSTALL_OUTPUT=$(pip install requests 2>&1) if [[ $? > 0 ]]; then echo "$INSTALL_OUTPUT" exit 1 fi -python bot.py \ No newline at end of file +echo "+ python bot.py" +python bot.py