From 4922f6340d29729d4c89e10824a420d7bf566078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sr=C5=A1e=C5=88?= Date: Tue, 21 Jan 2025 16:16:16 +0100 Subject: [PATCH] Fix: Checkapp.sh does not decode application name completely #59 I added a regex to match the start and end of the word so that inputs with prefixes/suffixes are handled correctly --- ld/checkapp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ld/checkapp.sh b/ld/checkapp.sh index 24e5559..cfb1d3b 100755 --- a/ld/checkapp.sh +++ b/ld/checkapp.sh @@ -10,7 +10,7 @@ if [ ! -e $1 ]; then exit 1 fi -SYMS=`objdump -j.applications -t $1 | grep $2 | wc -l` +SYMS=`objdump -j.applications -t $1 | grep -E "\<$2\>" | wc -l` if [ "${SYMS}" -eq "1" ]; then exit 0