[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#683867: grub-installer: Fails to install grub: line 45: syntax error: unexpected else



Package: grub-installer
Version: 1.76
Severity: important
Tags: patch

Installation with the daily build from August 3 fails at grub-installer.

(process:26576): /usr/bin/grub-installer: line 45: syntax error: unexpected
"else" (expecting "then")
WARNING **: Configuring 'grub-installer' failed with error code 2
WARNING **: Menu item 'grub-installer' failed.

Simple syntax typo, attached patch fixes (patched while installing and
installation succeeded).



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
>From adab600b7412379da97e13e12d87bbe6a547bc53 Mon Sep 17 00:00:00 2001
From: Mike Miller <mtmiller@ieee.org>
Date: Sat, 4 Aug 2012 18:57:23 -0400
Subject: [PATCH] Fix shell "unexpected else" syntax error

---
 grub-installer |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-installer b/grub-installer
index 768fbed..a0a4d8c 100755
--- a/grub-installer
+++ b/grub-installer
@@ -40,7 +40,7 @@ info "architecture: $ARCH"
 local initial_proc_contents="$(ls $ROOT/proc)"
 if [ -z "$initial_proc_contents" ]; then
 	info "Mounting /proc into $ROOT"
-	if [ "$(udpkg --print-os)" = "kfreebsd" ];
+	if [ "$(udpkg --print-os)" = "kfreebsd" ]; then
 		mount -t linprocfs proc $ROOT/proc
 	else
 		mount -t proc proc $ROOT/proc
-- 
1.7.10.4


Reply to: