mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 12:57:53 +00:00
Add comment about preventing Bash from searching $PATH
This commit is contained in:
parent
93d86b7e5c
commit
11e65e75f9
@ -13,7 +13,7 @@ CT_LoadConfig() {
|
|||||||
# It also sets KERNEL/ARCH/... for file inclusion below. Does not handle
|
# It also sets KERNEL/ARCH/... for file inclusion below. Does not handle
|
||||||
# recursive definitions yet. We don't need arrays at this point.
|
# recursive definitions yet. We don't need arrays at this point.
|
||||||
CT_TestOrAbort "Configuration file not found. Please create one." -r .config
|
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
|
# 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.
|
# export any variable, nor re-parse the configuration and functions files.
|
||||||
@ -37,7 +37,7 @@ CT_LoadConfig() {
|
|||||||
oldvals=""
|
oldvals=""
|
||||||
try=0
|
try=0
|
||||||
while [ "$try" -le 10 ]; do
|
while [ "$try" -le 10 ]; do
|
||||||
. ./.config
|
. ./.config # Prefixing with ./ prevents Bash from searching $PATH
|
||||||
vals=`set | ${grep} -E '^CT_'`
|
vals=`set | ${grep} -E '^CT_'`
|
||||||
if [ "$oldvals" = "$vals" ]; then
|
if [ "$oldvals" = "$vals" ]; then
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user