fix(quickemu): resolve shellcheck SC2155 warnings
https://www.shellcheck.net/wiki/SC2155
This commit is contained in:
parent
3292ce76ea
commit
aefc99efce
13
quickemu
13
quickemu
|
@ -237,6 +237,7 @@ function vm_boot() {
|
||||||
local OSK=""
|
local OSK=""
|
||||||
local SOUND=""
|
local SOUND=""
|
||||||
local SMM="${SMM:-off}"
|
local SMM="${SMM:-off}"
|
||||||
|
local TEMP_PORT=""
|
||||||
local USB_HOST_PASSTHROUGH_CONTROLLER="qemu-xhci"
|
local USB_HOST_PASSTHROUGH_CONTROLLER="qemu-xhci"
|
||||||
local VGA=""
|
local VGA=""
|
||||||
local VIDEO=""
|
local VIDEO=""
|
||||||
|
@ -1252,11 +1253,11 @@ function vm_boot() {
|
||||||
echo " - Monitor: (off)"
|
echo " - Monitor: (off)"
|
||||||
elif [ "${MONITOR}" == "telnet" ]; then
|
elif [ "${MONITOR}" == "telnet" ]; then
|
||||||
# Find a free port to expose monitor-telnet to the guest
|
# Find a free port to expose monitor-telnet to the guest
|
||||||
local temp_port="$(get_port ${MONITOR_TELNET_PORT} 9)"
|
TEMP_PORT="$(get_port ${MONITOR_TELNET_PORT} 9)"
|
||||||
if [ -z "${temp_port}" ]; then
|
if [ -z "${TEMP_PORT}" ]; then
|
||||||
echo " - Monitor: All Monitor-Telnet ports have been exhausted."
|
echo " - Monitor: All Monitor-Telnet ports have been exhausted."
|
||||||
else
|
else
|
||||||
MONITOR_TELNET_PORT="${temp_port}"
|
MONITOR_TELNET_PORT="${TEMP_PORT}"
|
||||||
# shellcheck disable=SC2054
|
# shellcheck disable=SC2054
|
||||||
args+=(-monitor telnet:${MONITOR_TELNET_HOST}:${MONITOR_TELNET_PORT},server,nowait)
|
args+=(-monitor telnet:${MONITOR_TELNET_HOST}:${MONITOR_TELNET_PORT},server,nowait)
|
||||||
echo " - Monitor: On host: telnet ${MONITOR_TELNET_HOST} ${MONITOR_TELNET_PORT}"
|
echo " - Monitor: On host: telnet ${MONITOR_TELNET_HOST} ${MONITOR_TELNET_PORT}"
|
||||||
|
@ -1291,11 +1292,11 @@ function vm_boot() {
|
||||||
args+=(-serial none)
|
args+=(-serial none)
|
||||||
elif [ "${SERIAL}" == "telnet" ]; then
|
elif [ "${SERIAL}" == "telnet" ]; then
|
||||||
# Find a free port to expose serial-telnet to the guest
|
# Find a free port to expose serial-telnet to the guest
|
||||||
local temp_port="$(get_port ${SERIAL_TELNET_PORT} 9)"
|
TEMP_PORT="$(get_port ${SERIAL_TELNET_PORT} 9)"
|
||||||
if [ -z "${temp_port}" ]; then
|
if [ -z "${TEMP_PORT}" ]; then
|
||||||
echo " - Serial: All Serial-Telnet ports have been exhausted."
|
echo " - Serial: All Serial-Telnet ports have been exhausted."
|
||||||
else
|
else
|
||||||
SERIAL_TELNET_PORT="${temp_port}"
|
SERIAL_TELNET_PORT="${TEMP_PORT}"
|
||||||
# shellcheck disable=SC2054,SC2206
|
# shellcheck disable=SC2054,SC2206
|
||||||
args+=(-serial telnet:${SERIAL_TELNET_HOST}:${SERIAL_TELNET_PORT},server,nowait)
|
args+=(-serial telnet:${SERIAL_TELNET_HOST}:${SERIAL_TELNET_PORT},server,nowait)
|
||||||
echo " - Serial: On host: telnet ${SERIAL_TELNET_HOST} ${SERIAL_TELNET_PORT}"
|
echo " - Serial: On host: telnet ${SERIAL_TELNET_HOST} ${SERIAL_TELNET_PORT}"
|
||||||
|
|
Loading…
Reference in New Issue