diff --git a/scripts/ocsp-stapling.test b/scripts/ocsp-stapling.test index e8c89de9c..a7e535fbf 100755 --- a/scripts/ocsp-stapling.test +++ b/scripts/ocsp-stapling.test @@ -387,7 +387,7 @@ generate_port() { # Generate a random port number #-------------------------------------------------------------------------# - if [[ "$OSTYPE" == "linux-gnu"* ]]; then + if [[ "$OSTYPE" == "linux"* ]]; then port=$(($(od -An -N2 /dev/urandom) % (65535-49512) + 49512)) elif [[ "$OSTYPE" == "darwin"* ]]; then port=$(($(od -An -N2 /dev/random) % (65535-49512) + 49512)) diff --git a/scripts/ocsp-stapling2.test b/scripts/ocsp-stapling2.test index 3425f5d73..0ec37b25a 100755 --- a/scripts/ocsp-stapling2.test +++ b/scripts/ocsp-stapling2.test @@ -452,7 +452,7 @@ generate_port() { # Generate a random port number #-------------------------------------------------------------------------# - if [[ "$OSTYPE" == "linux-gnu"* ]]; then + if [[ "$OSTYPE" == "linux"* ]]; then port=$(($(od -An -N2 /dev/urandom) % (65535-49512) + 49512)) elif [[ "$OSTYPE" == "darwin"* ]]; then port=$(($(od -An -N2 /dev/random) % (65535-49512) + 49512)) diff --git a/scripts/openssl.test b/scripts/openssl.test index 5298dc4aa..193fbfeb3 100755 --- a/scripts/openssl.test +++ b/scripts/openssl.test @@ -36,7 +36,7 @@ generate_port() { # Generate a random port number #-------------------------------------------------------------------------# - if [[ "$OSTYPE" == "linux-gnu"* ]]; then + if [[ "$OSTYPE" == "linux"* ]]; then port=$(($(od -An -N2 /dev/urandom) % (65535-49512) + 49512)) elif [[ "$OSTYPE" == "darwin"* ]]; then port=$(($(od -An -N2 /dev/random) % (65535-49512) + 49512)) diff --git a/scripts/openssl_srtp.test b/scripts/openssl_srtp.test index 1e47da972..500ea5c14 100755 --- a/scripts/openssl_srtp.test +++ b/scripts/openssl_srtp.test @@ -19,7 +19,7 @@ generate_port() { # Generate a random port number #-------------------------------------------------------------------------# - if [[ "$OSTYPE" == "linux-gnu"* ]]; then + if [[ "$OSTYPE" == "linux"* ]]; then port=$(($(od -An -N2 /dev/urandom) % (65535-49512) + 49512)) elif [[ "$OSTYPE" == "darwin"* ]]; then port=$(($(od -An -N2 /dev/random) % (65535-49512) + 49512))