another linpeas fix

This commit is contained in:
Carlos Polop
2024-12-05 17:49:44 +01:00
parent 1e1a8a7c86
commit 2a71da4bb2
4 changed files with 7 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
check_tencent_cvm () {
is_tencent_cvm="No"
if grep -qi Tencent /etc/cloud/cloud.cfg; then
if grep -qi Tencent /etc/cloud/cloud.cfg 2>/dev/null; then
is_tencent_cvm="Yes"
fi
}