Home > Blockchain >  setDomainEnv.sh not such file of directory
setDomainEnv.sh not such file of directory

Time:08-24

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

CodePudding user response:

Probably like this:

#!/bin/bash
bash ./path/bin/setDomainEnv.sh

CodePudding user response:

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

  • Related