mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
19 lines
351 B
Bash
Executable File
19 lines
351 B
Bash
Executable File
#!/bin/bash
|
|
|
|
EMAIL_BODY_FILE=$1
|
|
|
|
if [[ "$ERRORMAIL" == "" ]]; then
|
|
exit 0;
|
|
fi
|
|
|
|
SUBJECT="[renderdoc] Compile error on $PLATFORM"
|
|
|
|
EMAILHOST="${BUILD_ROOT}"/support/emailhost
|
|
|
|
if [ -f "${EMAILHOST}" ]; then
|
|
ssh $(cat "${EMAILHOST}") "mail -s \"$SUBJECT\" $ERRORMAIL" < $EMAIL_BODY_FILE
|
|
exit;
|
|
else
|
|
mail -s "$SUBJECT" $ERRORMAIL < $EMAIL_BODY_FILE
|
|
fi
|