Adjusting code formating in maintainer scripts.
authorDaniel Baumann <daniel@debian.org>
Tue, 15 Apr 2008 20:35:43 +0000 (22:35 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:47:59 +0000 (17:47 +0100)
debian/postinst
debian/postrm

index 71d71e3..b2d37bb 100644 (file)
@@ -6,19 +6,20 @@ case "$(ls -l /boot/vmlinuz-* | wc -l)" in
                # which will use dpkg-trigger inside update-initramfs
                INITRAMFS_ARGS="-u"
                ;;
+
        *)
                INITRAMFS_ARGS="-u -k all"
                ;;
 esac
 
-if [ -x /usr/sbin/update-initramfs ] && [ "x$1" != "xtriggered" ] && \
-   dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.18'
+if [ -x /usr/sbin/update-initramfs ] && [ "${1}" != "triggered" ] && \
+       dpkg --compare-versions "${DPKG_RUNNING_VERSION}" ge "1.14.18"
 then
        # this activates the trigger, if triggers are working
        update-initramfs ${INITRAMFS_ARGS}
 else
        # force it to actually happen
-       DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs ${INITRAMFS_ARGS}
+       DPKG_MAINTSCRIPT_PACKAGE="" update-initramfs ${INITRAMFS_ARGS}
 fi
 
 #DEBHELPER#
index 71d71e3..b2d37bb 100644 (file)
@@ -6,19 +6,20 @@ case "$(ls -l /boot/vmlinuz-* | wc -l)" in
                # which will use dpkg-trigger inside update-initramfs
                INITRAMFS_ARGS="-u"
                ;;
+
        *)
                INITRAMFS_ARGS="-u -k all"
                ;;
 esac
 
-if [ -x /usr/sbin/update-initramfs ] && [ "x$1" != "xtriggered" ] && \
-   dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.18'
+if [ -x /usr/sbin/update-initramfs ] && [ "${1}" != "triggered" ] && \
+       dpkg --compare-versions "${DPKG_RUNNING_VERSION}" ge "1.14.18"
 then
        # this activates the trigger, if triggers are working
        update-initramfs ${INITRAMFS_ARGS}
 else
        # force it to actually happen
-       DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs ${INITRAMFS_ARGS}
+       DPKG_MAINTSCRIPT_PACKAGE="" update-initramfs ${INITRAMFS_ARGS}
 fi
 
 #DEBHELPER#