dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0046-util-grub-install.in-Make-the-error-message-if-sourc.patch

f96e0b
From e6f215afa8ff4d586f71276fc12ea14eb1e6cd8b Mon Sep 17 00:00:00 2001
f96e0b
From: Colin Watson <cjwatson@ubuntu.com>
f96e0b
Date: Mon, 24 Sep 2012 18:50:35 +0100
f96e0b
Subject: [PATCH 046/482] * util/grub-install.in: Make the error message if
f96e0b
 $source_dir doesn't exist more useful.
f96e0b
f96e0b
---
f96e0b
 ChangeLog            | 5 +++++
f96e0b
 util/grub-install.in | 2 +-
f96e0b
 2 files changed, 6 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 3eda38f..a53c5cc 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,8 @@
f96e0b
+2012-09-24  Colin Watson  <cjwatson@ubuntu.com>
f96e0b
+
f96e0b
+	* util/grub-install.in: Make the error message if $source_dir
f96e0b
+	doesn't exist more useful.
f96e0b
+
f96e0b
 2012-09-22  Colin Watson  <cjwatson@ubuntu.com>
f96e0b
 
f96e0b
 	Fix grub-emu build on FreeBSD.
f96e0b
diff --git a/util/grub-install.in b/util/grub-install.in
f96e0b
index e19f1cd..56be98f 100644
f96e0b
--- a/util/grub-install.in
f96e0b
+++ b/util/grub-install.in
f96e0b
@@ -330,7 +330,7 @@ if [ x$source_dir = x ]; then
f96e0b
 fi
f96e0b
 
f96e0b
 if ! [ -d "$source_dir" ]; then
f96e0b
-    gettext_printf "%s doesn't exist. Please specify --target or --directory\\n" "source_dir"
f96e0b
+    gettext_printf "%s doesn't exist. Please specify --target or --directory\\n" "$source_dir"
f96e0b
     exit 1
f96e0b
 fi
f96e0b
 
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b