From 3967098d1f1ce7dc44ae25596ff036b1aada5323 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 31 Oct 2021 07:48:29 +0100 Subject: Replacing which with command in maintainer scripts. Signed-off-by: Daniel Baumann --- debian/open-infrastructure-container-tools.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/open-infrastructure-container-tools.postinst b/debian/open-infrastructure-container-tools.postinst index 62461bf..9f0b42e 100755 --- a/debian/open-infrastructure-container-tools.postinst +++ b/debian/open-infrastructure-container-tools.postinst @@ -111,7 +111,7 @@ EOF mv -f "${CONFFILE}.tmp" "${CONFFILE}" - if [ -x "$(which sysctl)" ] + if command -v sysctl > /dev/null 2>&1 then sysctl -q -p /etc/sysctl.d/zz-container.conf fi -- cgit v1.2.3