fix(quickemu): resolve shellcheck SC2236

https://www.shellcheck.net/wiki/SC2236
This commit is contained in:
Martin Wimpress 2024-05-07 12:08:43 +01:00 committed by Martin Wimpress
parent 6ffa1692d6
commit 1596179ca5
1 changed files with 2 additions and 2 deletions

View File

@ -446,7 +446,7 @@ function vm_boot() {
echo " Please install OVMF firmware."
exit 1
fi
if [ ! -z "${EFI_EXTRA_VARS}" ]; then
if [ -n "${EFI_EXTRA_VARS}" ]; then
if [ ! -e "${EFI_EXTRA_VARS}" ]; then
echo " - EFI: ERROR! EFI_EXTRA_VARS file ${EFI_EXTRA_VARS} does not exist."
exit 1
@ -1694,7 +1694,7 @@ else
shift
shift;;
-screenpct|--screenpct)
if [ ! -z "${2##*[!0-9]*}" ] ; then
if [ -n "${2##*[!0-9]*}" ] ; then
if [[ ${2} -ge 25 && ${2} -lt 100 ]] ; then
SCREENPCT=${2}
else