grub-shell: skip font copying when no font is available.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 23 Jan 2017 18:25:25 +0000 (21:25 +0300)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 27 Jan 2017 20:09:06 +0000 (20:09 +0000)
tests/util/grub-shell.in

index ab19dbb..814f36c 100644 (file)
@@ -481,7 +481,7 @@ elif [ x$boot = xemu ]; then
     mkdir -p "$grubdir/fonts"
     mkdir -p "$grubdir/themes"
     mkdir -p "$grubdir/locale"
-    cp "@builddir@/"unicode.pf2 "$grubdir/fonts/unicode.pf2"
+    test -f "@builddir@/"unicode.pf2 && cp "@builddir@/"unicode.pf2 "$grubdir/fonts/unicode.pf2"
     cp -R "@srcdir@/themes/starfield" "$grubdir/themes/starfield"
     for file in "@srcdir@/po/"*.gmo; do
        if [ -f "$file" ]; then