Merge pull request #5603 from kaleb-himes/scripts-update

Address Issue pointed out in (now deleted) comment on an old merge
This commit is contained in:
Sean Parkinson
2022-09-19 09:06:39 +10:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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))

View File

@ -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))

View File

@ -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))