optimize mail message for successfully applied account
[why] its used linux command 'curl' to send request data when sending email. so the ${HOME} and ${SHELL##*/} is treated as a system variable and replaced with the variable value. as a result, we will send a unexpected email. to avoid this problem, need add '\' before '$' in the old.
[how] use rest-client instead of command 'curl' to send the request.
Signed-off-by: Luan Shengde shdluan@163.com --- container/mail-robot/lib/assign-account-email.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/container/mail-robot/lib/assign-account-email.rb b/container/mail-robot/lib/assign-account-email.rb index 466586d..ee3b574 100755 --- a/container/mail-robot/lib/assign-account-email.rb +++ b/container/mail-robot/lib/assign-account-email.rb @@ -37,7 +37,7 @@ def build_apply_account_email(my_info) git clone https://gitee.com/wu_fengguang/lkp-tests.git cd lkp-tests make install - source \${HOME}/.\${SHELL##*/}rc + source ${HOME}/.${SHELL##*/}rc
3) submit job reference: https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/tutorial.md