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.
pull/1288/head
Karsten Horsmann 5 years ago committed by GitHub
parent b72e53b6a2
commit 940444a5dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save