Skip to content

Commit

Permalink
fixing env var (gradio-app#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliabd authored Apr 20, 2022
1 parent 5c34d91 commit d7b8b03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/reload_with_notification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
. /home/ubuntu/.bashrc
export PATH="/usr/local/bin:/usr/bin:/bin"


ERROR=$(bash ./reload_website.sh 2>&1)

if ! [ $? -eq 0 ]; then
Expand All @@ -10,4 +11,4 @@ if ! [ $? -eq 0 ]; then
THREAD_TS="$( jq -r '.ts' <<< "${RESPONSE}")"
DATA=$( jo text="$(echo "\`\`\`'$ERROR'\`\`\`")" channel=$CHANNELID thread_ts="'$THREAD_TS'")
_=$(curl https://slack.com/api/chat.postMessage -X POST -H 'Content-type: application/json; charset=utf-8' -H "Authorization: Bearer ${TOKEN}" --data "$DATA")
fi
fi

0 comments on commit d7b8b03

Please sign in to comment.