mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix parse_drmingw.sh
not finding module offset on Linux systems
The end anchor is removed from the grep RegEx, as it's not necessary and as it doesn't work on Linux systems when the crash log uses Windows line endings.
This commit is contained in:
parent
e05e47b200
commit
ec5d5d0fb9
|
@ -16,7 +16,7 @@ fi
|
|||
|
||||
TMP_OFFSET=$(grep -E -o "\(with offset [0-9A-F]+\)" "$2" | grep -E -o "[A-F0-9]*")
|
||||
if [ -z "$TMP_OFFSET" ]; then
|
||||
TMP_OFFSET=$(grep -E -o "^[0-9A-F]+-[0-9A-F]+ .+\.exe$" "$2" | grep -E -o "^[A-F0-9]+")
|
||||
TMP_OFFSET=$(grep -E -o "^[0-9A-F]+-[0-9A-F]+ .+\.exe" "$2" | grep -E -o "^[A-F0-9]+")
|
||||
if [ -z "$TMP_OFFSET" ]; then
|
||||
printf "\e[31m%s\e[30m\n" "Module offset not found; addresses will be absolute"
|
||||
echo -en "\e[0m"
|
||||
|
|
Loading…
Reference in a new issue