From: PHO Date: Tue, 1 Sep 2015 09:50:31 +0000 (+0900) Subject: The 'source' built-in command tries to search for the given filename in PATH when... X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=HEAD;p=autobuild.git The 'source' built-in command tries to search for the given filename in PATH when the filename does not contain a slash, which isn't what we want to do. --- diff --git a/src/resource.bash b/src/resource.bash index 5ae60ef..46bbaf9 100644 --- a/src/resource.bash +++ b/src/resource.bash @@ -5,10 +5,10 @@ setBuildTarget "all" setDocDirectory "." setDocTarget "all" -if [[ -f "Build.rc" ]]; then - . "Build.rc" +if [[ -f "./Build.rc" ]]; then + . "./Build.rc" fi -if [[ -f "Build.rc.local" ]]; then - . "Build.rc.local" +if [[ -f "./Build.rc.local" ]]; then + . "./Build.rc.local" fi