From 9a193a3e025ae6179bc9cf2d1f2155709d371f14 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Sun, 18 Sep 2022 08:45:18 -0600 Subject: [PATCH] Address Issue pointed out in (now deleted) comment on an old merge --- scripts/ocsp-stapling.test | 2 +- scripts/ocsp-stapling2.test | 2 +- scripts/openssl.test | 2 +- scripts/openssl_srtp.test | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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))