boklm pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
-
68895d3e
by Nicolas Vigier at 2025-10-20T13:46:24+02:00
1 changed file:
Changes:
... | ... | @@ -26,23 +26,13 @@ trap "rm -Rf $old_ur" EXIT |
26 | 26 | mv "$tbb_version_type" "$old_ur/$tbb_version_type"
|
27 | 27 | tar -xf "$update_responses_tar"
|
28 | 28 | |
29 | -# Keep download-*.json files from previous release if they are not in
|
|
30 | -# the new release. This happens when a release does not include some
|
|
31 | -# platforms. See tor-browser-build#41039.
|
|
32 | -IFS=$'\n'
|
|
33 | -for file in $(ls -1 "$old_ur/$tbb_version_type"/download-*.json)
|
|
34 | -do
|
|
35 | - fname=$(basename "$file")
|
|
36 | - test -f "$tbb_version_type/$fname" && continue
|
|
37 | - mv "$file" "$tbb_version_type/$fname"
|
|
38 | -done
|
|
39 | - |
|
40 | -# Keep directory from previous release if they are not in the new release.
|
|
29 | +# Keep files and directories from previous release if they are not in
|
|
30 | +# the new release.
|
|
41 | 31 | # This happens when a release does not include some platforms.
|
42 | -for file in $(ls -1 "$old_ur/$tbb_version_type")
|
|
32 | +IFS=$'\n'
|
|
33 | +for file in $(ls -a1 "$old_ur/$tbb_version_type")
|
|
43 | 34 | do
|
44 | - test -d "$old_ur/$tbb_version_type/$file" || continue
|
|
45 | - test -d "$tbb_version_type/$file" && continue
|
|
35 | + test -e "$tbb_version_type/$file" && continue
|
|
46 | 36 | mv -f "$old_ur/$tbb_version_type/$file" "$tbb_version_type/$file"
|
47 | 37 | done
|
48 | 38 |