Merge pull request #4 from Oichkatzelesfrettschen/codex/find-issues-and-propose-fixes
Fix IFS restoration in gen_uEnv.txt.sh
This commit is contained in:
commit
89b724a254
4
releasetools/gen_uEnv.txt.sh
Executable file → Normal file
4
releasetools/gen_uEnv.txt.sh
Executable file → Normal file
|
|
@ -61,7 +61,8 @@ fill_cmd() {
|
||||||
#prefix is an optional directory containing the ending /
|
#prefix is an optional directory containing the ending /
|
||||||
load=$1
|
load=$1
|
||||||
prefix=$2
|
prefix=$2
|
||||||
export IFS=" "
|
local old_IFS=$IFS
|
||||||
|
IFS=" "
|
||||||
echo $list | while true
|
echo $list | while true
|
||||||
do
|
do
|
||||||
if ! read -r mem addr
|
if ! read -r mem addr
|
||||||
|
|
@ -71,6 +72,7 @@ fill_cmd() {
|
||||||
#e.g. ; fatloat mmc 0:1 0x82000000 mydir/ds.elf
|
#e.g. ; fatloat mmc 0:1 0x82000000 mydir/ds.elf
|
||||||
echo -n "; $load $mem $prefix$addr"
|
echo -n "; $load $mem $prefix$addr"
|
||||||
done
|
done
|
||||||
|
IFS=$old_IFS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user