Test for Windows and macOS before calculating available RAM

Prevents throwing a syntax error when launching KolibriOS.
This commit is contained in:
Martin Wimpress 2022-02-22 02:37:44 +00:00
parent 2d271e3176
commit 6694a3af5f
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -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 [ "${RAM_VM//G/}" -lt 4 ]; then
echo "ERROR! You have insufficient RAM to run ${guest_os} in a VM"
exit 1
fi