... | ... |
@@ -83,12 +83,10 @@ function fgfs () { |
83 | 83 |
esac |
84 | 84 |
} |
85 | 85 |
function ld_library_path () { |
86 |
- IFS_=$IFS |
|
87 |
- IFS=$'\n' |
|
86 |
+ local IFS=$'\n' |
|
88 | 87 |
for lib in $(ls -d $FGDIR/install/*/lib); do |
89 | 88 |
egrep -q "(^|:)$lib(:|$)" <<< "${LD_LIBRARY_PATH}" || LD_LIBRARY_PATH="${lib}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}" |
90 | 89 |
done |
91 |
- IFS=$IFS_ |
|
92 | 90 |
export LD_LIBRARY_PATH |
93 | 91 |
} |
94 | 92 |
local aircrafts="$FGADDON/Aircraft" |