diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 07d0eac..b15d40b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -43,10 +43,10 @@ jobs: echo "=== Checking $pkg ===" cd "$BUILDPKG_BASE/$pkg" - # Parse basic fields from build.sh - topdir=$(grep -E '^topdir=' build.sh | cut -d= -f2) - version=$(grep -E '^version=' build.sh | cut -d= -f2) - pkgver=$(grep -E '^pkgver=' build.sh | cut -d= -f2) + # Parse basic fields from build.sh using GNU grep (ggrep) + topdir=$(ggrep -E '^topdir=' build.sh | cut -d= -f2) + version=$(ggrep -E '^version=' build.sh | cut -d= -f2) + pkgver=$(ggrep -E '^pkgver=' build.sh | cut -d= -f2) secname="$topdir" # Skip build if package already exists @@ -57,7 +57,7 @@ jobs: fi echo "=== Building $pkg (version $version pkgver $pkgver) ===" - LOGFILE=$(bash build.sh all 2>&1 | tee /tmp/build-$pkg.log | grep -oE '[^ ]+\.log' | tail -n1) + LOGFILE=$(bash build.sh all 2>&1 | tee /tmp/build-$pkg.log | ggrep -oE '[^ ]+\.log' | tail -n1) if [ -z "$LOGFILE" ]; then echo "ERROR: Could not detect logfile for $pkg"