We started using a new integration and production pipeline called GO. To execute a bash script there, the convenient way is to use the bash command instead of executing the script directly. For that the bash is called in a login shell, so the command I'm trying to execute the following:bash -l run_tests `cat myserver.url`:8080bash -l run_tests $(cat myserver.url):8080But the whole cat myserver.url is passed as a string instead of being executed. Any ideas?
execute commands as parameters in a login shell
bash
I wrote a little test script$ cat run_tests echo $@echo $0 Starting tests with $1echo tests doneand ran following, (note quotes around -c string)$ bash -l -c ./run_tests $(cat furl):8080http://abc.com/:8080./run_tests Starting tests with http://abc.com/:8080tests done