diff options
author | Austin Beer <asbeer@gmail.com> | 2018-10-24 18:56:12 -0600 |
---|---|---|
committer | Austin Beer <asbeer@gmail.com> | 2018-10-24 18:56:12 -0600 |
commit | 93d86b7e5cc58fcb0c44f0666cdc05052cc8e8e2 (patch) | |
tree | d75c397cd13bfb232f4aa3fa84f8a8c3a011cc62 /scripts/functions | |
parent | ee829c25eb374386ec1d5df2250a8a52f0f9d4a1 (diff) | |
download | crosstool-ng-93d86b7e5cc58fcb0c44f0666cdc05052cc8e8e2.tar.gz crosstool-ng-93d86b7e5cc58fcb0c44f0666cdc05052cc8e8e2.tar.bz2 crosstool-ng-93d86b7e5cc58fcb0c44f0666cdc05052cc8e8e2.zip |
Prevent Bash from searching $PATH when sourcing the .config file
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index 790533cc..f6e3aeb8 100644 --- a/scripts/functions +++ b/scripts/functions @@ -13,7 +13,7 @@ CT_LoadConfig() { # It also sets KERNEL/ARCH/... for file inclusion below. Does not handle # recursive definitions yet. We don't need arrays at this point. CT_TestOrAbort "Configuration file not found. Please create one." -r .config - . .config + . ./.config # Include sub-scripts instead of calling them: that way, we do not have to # export any variable, nor re-parse the configuration and functions files. @@ -37,7 +37,7 @@ CT_LoadConfig() { oldvals="" try=0 while [ "$try" -le 10 ]; do - . .config + . ./.config vals=`set | ${grep} -E '^CT_'` if [ "$oldvals" = "$vals" ]; then break |