diff options
author | Alexey Neyman <stilor@att.net> | 2018-10-25 21:15:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 21:15:54 -0700 |
commit | e12e90c798a7c27cb0d7edfba4e7bcd80fc68b65 (patch) | |
tree | a30b1755b1ce626af230aea6a851439332c144e3 /scripts/functions | |
parent | 4a2b3830d90bdc9c2a6195167a3d892f17a87bf7 (diff) | |
parent | 11e65e75f9cc3e89d9efa3891445796453284cd2 (diff) | |
download | crosstool-ng-e12e90c798a7c27cb0d7edfba4e7bcd80fc68b65.tar.gz crosstool-ng-e12e90c798a7c27cb0d7edfba4e7bcd80fc68b65.tar.bz2 crosstool-ng-e12e90c798a7c27cb0d7edfba4e7bcd80fc68b65.zip |
Merge pull request #1069 from austin-beer/master
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..1b753ef0 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 # Prefixing with ./ prevents Bash from searching $PATH # 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 # Prefixing with ./ prevents Bash from searching $PATH vals=`set | ${grep} -E '^CT_'` if [ "$oldvals" = "$vals" ]; then break |