Skip to content

Commit

Permalink
Prevent Bash from searching $PATH when sourcing the .config file
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-beer committed Oct 25, 2018
1 parent ee829c2 commit 93d86b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/functions
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 93d86b7

Please sign in to comment.