0

I am building a bash script and want to call the setDomainEnv.sh inside the script but getting the error as

"No such file or directory"

. Inside my script I have something like:

#!/bin/bash

. ./path/bin/setDomainEnv.sh

Do you have an idea how can I call the setDomainEnv.sh?

Thanks

2 Answers2

0

Probably like this:

#!/bin/bash
bash ./path/bin/setDomainEnv.sh
Necklondon
  • 928
  • 4
  • 12
0

I found the problem. When running the script setDomainEnv.sh I had to use only as below:

. /path/bin/setDomainEnv.sh

i.e, . space and then /path/bin/setDomainEnv.sh