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
Notes:
sideshowbarker
2024-07-18 12:19:22 +09:00
Author: https://github.com/apoorv-mishra Commit: https://github.com/SerenityOS/serenity/commit/f32ab73accd Pull-request: https://github.com/SerenityOS/serenity/pull/8021
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ SERENITY_RUN="${SERENITY_RUN:-$1}"
|
|||
}
|
||||
|
||||
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)"
|
||||
|
||||
[ -z "$SERENITY_COMMON_QEMU_ARGS" ] && SERENITY_COMMON_QEMU_ARGS="
|
||||
|
|
Loading…
Add table
Reference in a new issue