Add /dev/null

This commit is contained in:
weslambert
2020-07-08 23:30:50 -04:00
committed by GitHub
parent 889ba67d85
commit c01047fad2

View File

@@ -585,7 +585,7 @@ configure_network_sensor() {
detect_cloud() {
echo "Testing if setup is running on a cloud instance"
if ( curl --fail -s -m 5 http://169.254.169.254/latest/meta-data/instance-id > /dev/null ) || ( dmidecode -s bios-vendor | grep -q Google); then export is_cloud="true"; fi
if ( curl --fail -s -m 5 http://169.254.169.254/latest/meta-data/instance-id > /dev/null ) || ( dmidecode -s bios-vendor | grep -q Google > /dev/null); then export is_cloud="true"; fi
}
detect_os() {