I had a similar problem with relative paths like @Guilherme. I ran my bash script with:
bash test/script.sh
However, my file was at the same directory level as the bash script, and not the test directory (where I called bash), so the script could not find my file.
Solution for me:
1. cd in / test and run bash script.sh from there 2. Use absolute paths
Kevin source share