summaryrefslogtreecommitdiff
path: root/sysutils/grub/patches/patch-ai
blob: e009a07623a4a9ad908f853c1662d7a6359f3b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ai,v 1.1 2003/07/13 17:35:05 wiz Exp $

--- util/grub-install.in.orig	Mon May 20 13:21:50 2002
+++ util/grub-install.in
@@ -297,7 +297,7 @@ fi
 # Stage 1.5 does not exist.
 
 # Create the GRUB directory if it is not present.
-test -d "$bootdir" || mkdir "$bootdir" || exit 1
+test -z "$bootdir" || test -d "$bootdir" || mkdir "$bootdir" || exit 1
 test -d "$grubdir" || mkdir "$grubdir" || exit 1
 
 # If --recheck is specified, remove the device map, if present.