From: Vladimir Serbinenko Date: Mon, 23 Jan 2017 18:25:25 +0000 (+0300) Subject: grub-shell: skip font copying when no font is available. X-Git-Tag: 2.02-rc1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bec592aa872f7898e9665973b26156e46e73b29e;p=thirdparty%2Fgrub.git grub-shell: skip font copying when no font is available. --- diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index ab19dbbf5..814f36c6b 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -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