On Tue, Dec 22, 2020 at 09:59:55AM +0800, Wu Fengguang wrote:
On Tue, Dec 22, 2020 at 09:37:19AM +0800, Luan Shengde wrote:
On Tue, Dec 22, 2020 at 09:33:56AM +0800, Wu Fengguang wrote:
Please help find that shell script out -- it's likely a bug with missing "".
OK, I will check it out.
Pay attention to ruby's `` or %x[] They also run shell implicitly.
I found it, when it calling to send mail, it used %x(curl ...) when it puts the email message, it is as we write it. but when we received it, it changed.
I will try to fix it.
Thanks, Luan Shengde
======================== run script: luanshd@crystal ~/script% ./test1.rb To: lsd Subject: test mail
You can use the following info to submit jobs:
1) setup default config run the following command to add the below setup to default config file
mkdir -p ~/.config/compass-ci/defaults/ cd lkp-tests source ${HOME}/.bashrc && source ${HOME}/.bash_profile % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 311 0 0 100 311 0 795 --:--:-- --:--:-- --:--:-- 793 ======== received email: From: team@crystal.ci To: lsd Subject: test mail
You can use the following info to submit jobs:
1) setup default config run the following command to add the below setup to default config file
mkdir -p ~/.config/compass-ci/defaults/ cd lkp-tests source /home/luanshd/.bashrc && source /home/luanshd/.bash_profile ========================
Thanks, Fengguang
On Tue, Dec 22, 2020 at 09:32:47AM +0800, Wu Fengguang wrote:
There must be some shell script that expanded it. Ruby cannot expand this.
% pry [1] pry(main)> email_msg = <<~EMAIL_MESSAGE [1] pry(main)* ${HOME} [1] pry(main)* EMAIL_MESSAGE => "${HOME}\n"
On Mon, Dec 21, 2020 at 06:43:33PM +0800, Luan Shengde wrote:
On Mon, Dec 21, 2020 at 10:19:52AM +0800, Wu Fengguang wrote:
Shengde, there must be some shell script that expanded this message. Where's that script?
No shell script expanded this message. just apply-account called it. if directly use ${HOME} or ${HOME}, it will be displayed to empty. I think it may be a bug use \${} will avoid it.
Thanks, Luan Shengde
Thanks, Fengguang
On Mon, Dec 21, 2020 at 09:57:31AM +0800, Wu Fengguang wrote: >On Sat, Dec 19, 2020 at 07:39:52PM +0800, Li Ping wrote: >>[why]: >>source /root/.bashrc && /root/.bash_profile >>follow this step can not success. > >>- source ${HOME}/.bashrc && source ${HOME}/.bash_profile >>+ source \${HOME}/.\${SHELL##*/}rc > >ruby string won't expand SHELL ${}? > >pry(main)> puts "${HOME}" >${HOME} > >Thanks, >Fengguang >