[Dmraid-debian-commits] [SCM] Maintenance of the dmraid package branch, lenny, updated. f3a39013818e22a898b744fc42e4a138d328de3a

Giuseppe Iuculano giuseppe at iuculano.it
Fri Jan 23 17:50:09 UTC 2009


The following commit has been merged in the lenny branch:
commit 480ab68bb8e243c01de2e5db1f341ab107cab3aa
Author: Giuseppe Iuculano <giuseppe at iuculano.it>
Date:   Fri Jan 23 18:33:26 2009 +0100

    Fix bashism

diff --git a/debian/dmraid.postinst b/debian/dmraid.postinst
index f0b3730..5628966 100644
--- a/debian/dmraid.postinst
+++ b/debian/dmraid.postinst
@@ -5,7 +5,7 @@ set -e
 
 case "$1" in
   configure)
-    if type update-initramfs >/dev/null 2>&1; then
+    if command -v update-initramfs >/dev/null 2>&1; then
       update-initramfs -u
     fi
 
diff --git a/debian/dmraid.postrm b/debian/dmraid.postrm
index 865a28d..4a37f65 100644
--- a/debian/dmraid.postrm
+++ b/debian/dmraid.postrm
@@ -4,7 +4,7 @@ set -e
 
 case "$1" in
     remove|purge)
-	if type update-initramfs >/dev/null 2>&1; then
+	if command -v update-initramfs >/dev/null 2>&1; then
 		update-initramfs -u
     	fi
 

-- 
Maintenance of the dmraid package



More information about the Dmraid-debian-commits mailing list