public inbox for grub-devel@gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix bootstrap check for po directory
@ 2026-03-16  6:32 azban
  2026-03-17 20:59 ` Leo Sandoval via Grub-devel
  0 siblings, 1 reply; 3+ messages in thread
From: azban @ 2026-03-16  6:32 UTC (permalink / raw)
  To: grub-devel@gnu.org

The syntax for the check here was incorrect. If the directory didn't exist, it would create it, but if it did exist, it would not return and it would redownload.

diff --git a/bootstrap b/bootstrap
index dc9fb4383..1d9c6a70f 100755
--- a/bootstrap
+++ b/bootstrap
@@ -931,7 +931,7 @@ update_po_files() {
   # Usually contains *.s1 checksum files.
   ref_po_dir="$po_dir/.reference"

-  test -d $ref_po_dir || mkdir $ref_po_dir || return
+  test -d $ref_po_dir && return || mkdir $ref_po_dir
   download_po_files $ref_po_dir $domain \
     && ls "$ref_po_dir"/*.po 2>/dev/null |
       sed 's|.*/||; s|\.po$||' > "$po_dir/LINGUAS" || return

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-17 21:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16  6:32 [PATCH] Fix bootstrap check for po directory azban
2026-03-17 20:59 ` Leo Sandoval via Grub-devel
2026-03-17 21:09   ` Collin Funk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox