From 940444a5ddc02ce5591827bd42916f6484ebf5c6 Mon Sep 17 00:00:00 2001 From: Karsten Horsmann Date: Tue, 22 Jun 2021 13:33:02 +0200 Subject: [PATCH] not report errors if "which" is failing. Since ngcp-virt-identify is not part of rtpengine #916 the helper Pre/Post script should not report errors if "which" is failing. --- debian/ngcp-rtpengine-iptables-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/ngcp-rtpengine-iptables-setup b/debian/ngcp-rtpengine-iptables-setup index 3049d4fa2..5ca3e9a4d 100755 --- a/debian/ngcp-rtpengine-iptables-setup +++ b/debian/ngcp-rtpengine-iptables-setup @@ -31,7 +31,7 @@ fi ### -if [ -x "$(which ngcp-virt-identify)" ]; then +if [ -x "$(which ngcp-virt-identify 2>/dev/null)" ]; then if ngcp-virt-identify --type container; then VIRT="yes" fi