I have a script that uses sh shell. I get an error in the line that uses the source command. It seems source is not included in my
sh
source
On Ubuntu, instead of using sh scriptname.sh to run the file, I've used . scriptname.sh and it worked! The first line of my file contains: #!/bin/bash
#!/bin/bash
use this command to run the script
.name_of_script.sh