Bug#385391: Fix bashism

Michal Čihař michal at cihar.com
Fri Sep 1 10:04:48 UTC 2006


Package: grub
Version: 0.97-14
Followup-For: Bug #385391

Hi

Attached patch to fix bashisms in this script.

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-2-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

-- no debconf information
-------------- next part --------------
--- /tmp/update-grub	2006-09-01 12:00:49.000000000 +0200
+++ /sbin/update-grub	2006-09-01 12:01:54.000000000 +0200
@@ -15,11 +15,11 @@
 fi
 
 if [ -x /usr/sbin/update-grub.real ]; then
-	if [ "$0" == "/sbin/update-grub" ]; then
+	if [ "$0" = "/sbin/update-grub" ]; then
 		echo "You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!"
 		echo
 	fi
-	exec -a update-grub /usr/sbin/update-grub.real $*
+	exec /usr/sbin/update-grub.real $*
 else
 	echo "Your /usr is broken, please fix it before call this wrapper!"
 fi


More information about the Pkg-grub-devel mailing list