Bug 375415, update packaging breaks with filenames containing a space, p=Rob Marshall (tH, rdmsoft@bugs.rdmsoft.com), r=bsmedberg

This commit is contained in:
nrthomas%gmail.com 2008-01-10 20:59:47 +00:00
Родитель 0751a915ec
Коммит dc0d450713
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -101,11 +101,12 @@ list_files() {
find . -type f \
! -name "channel-prefs.js" \
! -name "update.manifest" \
! -name "temp-filelist" \
| sed 's/\.\/\(.*\)/\1/' \
| sort > "$workdir/temp-filelist"
| sort > "temp-filelist"
while read file; do
eval "${1}[$count]=\"$file\""
(( count++ ))
done < "$workdir/temp-filelist"
rm "$workdir/temp-filelist"
done < "temp-filelist"
rm "temp-filelist"
}

Просмотреть файл

@ -150,7 +150,7 @@ for ((i=0; $i<$num_newfiles; i=$i+1)); do
# If we've already tested this file, then skip it
for ((j=0; $j<$num_oldfiles; j=$j+1)); do
if [ "\"$f\"" = "${oldfiles[j]}" ]; then
if [ "$f" = "${oldfiles[j]}" ]; then
continue 2
fi
done