|
Line
Link Here
|
| 0 |
-- eselect-orig/libs/config.bash |
0 |
++ eselect/libs/config.bash |
|
Lines 56-67
Link Here
|
| 56 |
|
56 |
|
| 57 |
( |
57 |
( |
| 58 |
# parse the names of all settings in the file |
58 |
# parse the names of all settings in the file |
|
|
59 |
IFS=$'\n' |
| 59 |
for line in ${content[@]} ; do |
60 |
for line in ${content[@]} ; do |
| 60 |
[[ ${line/=/} != ${line} ]] || continue |
61 |
[[ ${line/=/} != ${line} ]] || continue |
| 61 |
line=${line/=*/} |
62 |
line=${line/=*/} |
| 62 |
local ${line}="" |
63 |
local ${line}="" |
| 63 |
vars=(${vars[@]} ${line}) |
64 |
vars=(${vars[@]} ${line}) |
| 64 |
done |
65 |
done |
|
|
66 |
unset IFS |
| 65 |
|
67 |
|
| 66 |
source ${configfile} 2>&1 > /dev/null \ |
68 |
source ${configfile} 2>&1 > /dev/null \ |
| 67 |
|| die "Failed to source ${configfile}." |
69 |
|| die "Failed to source ${configfile}." |