fix(quickemu): resolve shellcheck SC2236
https://www.shellcheck.net/wiki/SC2236
This commit is contained in:
parent
6ffa1692d6
commit
1596179ca5
4
quickemu
4
quickemu
|
@ -446,7 +446,7 @@ function vm_boot() {
|
||||||
echo " Please install OVMF firmware."
|
echo " Please install OVMF firmware."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -z "${EFI_EXTRA_VARS}" ]; then
|
if [ -n "${EFI_EXTRA_VARS}" ]; then
|
||||||
if [ ! -e "${EFI_EXTRA_VARS}" ]; then
|
if [ ! -e "${EFI_EXTRA_VARS}" ]; then
|
||||||
echo " - EFI: ERROR! EFI_EXTRA_VARS file ${EFI_EXTRA_VARS} does not exist."
|
echo " - EFI: ERROR! EFI_EXTRA_VARS file ${EFI_EXTRA_VARS} does not exist."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -1694,7 +1694,7 @@ else
|
||||||
shift
|
shift
|
||||||
shift;;
|
shift;;
|
||||||
-screenpct|--screenpct)
|
-screenpct|--screenpct)
|
||||||
if [ ! -z "${2##*[!0-9]*}" ] ; then
|
if [ -n "${2##*[!0-9]*}" ] ; then
|
||||||
if [[ ${2} -ge 25 && ${2} -lt 100 ]] ; then
|
if [[ ${2} -ge 25 && ${2} -lt 100 ]] ; then
|
||||||
SCREENPCT=${2}
|
SCREENPCT=${2}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue