在bash中find一个configuration文件

我知道我可以source FILE. FILE 在Bash中打开一个文件,但由于某种原因,我无法将它加载到文件中。 我一直在控制台中看到“没有这样的文件或目录”错误。

这是目录结构

 /bin/script.sh (file including the config) /config.sh 

无论如何,我可能会重新组织这个问题,但现在,我认为这是事实。 我试图包含这样的configuration文件:

 source ../config.sh source config.sh 

这两个实际上都不起作用。 有任何想法吗?

亚伦的回应完全有帮助。 这是最终为我工作的解决scheme。

 SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source $SCRIPTDIR/../config.sh;