#!/usr/bin/env bash
LOG_FILE="build.log"
if [ ! -f "$LOG_FILE" ]; then
echo "Error: $LOG_FILE not found." >&2
exit 1
fi
# Extract the digits following GCometUI_ or GComet_UI_ before .xml
VERSION=$(sed -n 's/.*Done: return value .*GComet_\?UI_\([0-9]\{1,\}\)\.xml.*/\1/p' "$LOG_FILE" | tail -n 1)
if [ -n "$VERSION" ]; then
echo "Extracted Version: $VERSION"
else
echo "Version pattern not found."
exit 1
fi
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)