#!/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

#!/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

Fix error mail script with incorrect quoting
Fix error mail script with incorrect quoting
