Test for Windows and macOS before calculating available RAM

Prevents throwing a syntax error when launching KolibriOS.
pull/377/head
Martin Wimpress 3 years ago
parent 2d271e3176
commit 6694a3af5f
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 4
      quickemu

@ -328,8 +328,8 @@ function vm_boot() {
fi
echo ", ${RAM_VM} RAM"
if [ "${RAM_VM//G/}" -lt 4 ]; then
if [ "${guest_os}" == "macos" ] || [ "${guest_os}" == "windows" ]; then
if [ "${guest_os}" == "macos" ] || [ "${guest_os}" == "windows" ]; then
if [ "${RAM_VM//G/}" -lt 4 ]; then
echo "ERROR! You have insufficient RAM to run ${guest_os} in a VM"
exit 1
fi

Loading…
Cancel
Save