mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Minor code corrections
This commit is contained in:
parent
780735cce6
commit
63c32ae0c3
1 changed files with 2 additions and 1 deletions
3
quickemu
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…
Reference in a new issue