mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
Prevent Bash from searching $PATH when sourcing the .config file
This commit is contained in:
parent
ee829c25eb
commit
93d86b7e5c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user