emerald-post-gcc-build: Fix for BusyBox grep

Signed-off-by: PeroSar <perosar1111@gmail.com>
This commit is contained in:
PeroSar 2022-06-04 10:35:05 +05:30
parent 3ed698bc14
commit 9fee6a0d25
Signed by: PeroSar
GPG Key ID: 5C2D258445DA8B58
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
set -euo pipefail
EMERALD_SCRIPT_DIR=$(dirname "$(realpath "$0")")
GCC_VER=$(grep -P -m1 '^GCC_VER=' emerald-gcc.sh | cut -d= -f2)
GCC_VER=$(grep -m1 '^GCC_VER=' "$EMERALD_SCRIPT_DIR"/emerald-gcc.sh | cut -d= -f2)
source "$EMERALD_SCRIPT_DIR"/common.sh
AR=$PREFIX/$TARGET/bin/ar