Minor code corrections

This commit is contained in:
Martin Wimpress 2021-09-25 13:42:04 +01:00
parent 780735cce6
commit 63c32ae0c3
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -95,7 +95,7 @@ function get_port() {
while true; do
local CANDIDATE=$((PORT_START + (RANDOM % PORT_RANGE)))
(echo "" >/dev/tcp/127.0.0.1/${CANDIDATE}) >/dev/null 2>&1
if [ $? -ne 0 ]; then
if [ ${?} -ne 0 ]; then
echo "${CANDIDATE}"
break
fi
@ -572,6 +572,7 @@ driver_iso=""
disk_img=""
disk="64G"
usb_devices=()
port_forwards=()
ram=""
cpu_cores=""