Minor code corrections

pull/61/head
Martin Wimpress 3 years ago
parent 780735cce6
commit 63c32ae0c3
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 3
      quickemu

@ -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=""

Loading…
Cancel
Save