mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
Meta: Fix QEMU version check in run.sh
The QEMU version check in `Meta/run.sh` fails on macOS because the BSD version of `grep` does not support the `-P` option. Using `sed` instead.
This commit is contained in:
parent
1fd547bf0b
commit
f32ab73acc
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ SERENITY_RUN="${SERENITY_RUN:-$1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
SERENITY_QEMU_MIN_REQ_VERSION=5
|
SERENITY_QEMU_MIN_REQ_VERSION=5
|
||||||
installed_major_version=$("$SERENITY_QEMU_BIN" -version | head -n 1 | grep -Po "(?<=QEMU emulator version )([1-9]\d*|0)")
|
installed_major_version=$("$SERENITY_QEMU_BIN" -version | head -n 1 | sed -E 's/QEMU emulator version ([1-9][0-9]*|0).*/\1/')
|
||||||
[ "$installed_major_version" -lt "$SERENITY_QEMU_MIN_REQ_VERSION" ] && die "Required QEMU >= 5.0! Found $($SERENITY_QEMU_BIN -version | head -n 1)"
|
[ "$installed_major_version" -lt "$SERENITY_QEMU_MIN_REQ_VERSION" ] && die "Required QEMU >= 5.0! Found $($SERENITY_QEMU_BIN -version | head -n 1)"
|
||||||
|
|
||||||
[ -z "$SERENITY_COMMON_QEMU_ARGS" ] && SERENITY_COMMON_QEMU_ARGS="
|
[ -z "$SERENITY_COMMON_QEMU_ARGS" ] && SERENITY_COMMON_QEMU_ARGS="
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue