Fix bc command not found in RHEL in install script (#391)

This commit is contained in:
Shrikant Sharat Kandula 2020-08-21 13:56:40 +05:30 committed by GitHub
parent 63946fcacb
commit aa4635420f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ check_ports_occupied() {
sudo netstat -anp tcp
else
sudo netstat -tupln tcp
fi | awk '$6 == "LISTEN" && $4 ~ /^.*[.:](80|443)$/' | wc -l | bc
fi | awk '$6 == "LISTEN" && $4 ~ /^.*[.:](80|443)$/' | wc -l | grep -o '[[:digit:]]\+'
)"
}