diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-10-31 06:48:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-30 16:44:02 +0000 |
commit | 34f313e1d3def931b8cb7a49cf6859082a0143ce (patch) | |
tree | c29ebfd937a8994ee6aacd0811e8e9a13e26f33f /debian/open-infrastructure-system-boot.postinst | |
parent | Updating to standards version 4.6.2. (diff) | |
download | open-infrastructure-system-tools-34f313e1d3def931b8cb7a49cf6859082a0143ce.tar.xz open-infrastructure-system-tools-34f313e1d3def931b8cb7a49cf6859082a0143ce.zip |
Replacing which with command in maintainer scripts.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/open-infrastructure-system-boot.postinst')
-rwxr-xr-x | debian/open-infrastructure-system-boot.postinst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/open-infrastructure-system-boot.postinst b/debian/open-infrastructure-system-boot.postinst index 35b9e86..3ff8751 100755 --- a/debian/open-infrastructure-system-boot.postinst +++ b/debian/open-infrastructure-system-boot.postinst @@ -6,9 +6,12 @@ case "${1}" in configure) mkdir -p /etc/live/boot - if [ -x "$(which update-initramfs 2>/dev/null)" ] && [ -e /etc/initramfs-tools/initramfs.conf ] + if command -v update-initramfs > /dev/null 2>&1 then - update-initramfs -u + if [ -e /etc/initramfs-tools/initramfs.conf ] + then + update-initramfs -u + fi fi ;; |