From 6f1ee8b50aa063381cb4d6c980438a1b19a051c9 Mon Sep 17 00:00:00 2001 From: rask24 Date: Wed, 14 Feb 2024 20:47:00 +0900 Subject: [PATCH] fix shell script --- test/check_allowed_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/check_allowed_functions.sh b/test/check_allowed_functions.sh index a76c4f7..1bf2bac 100755 --- a/test/check_allowed_functions.sh +++ b/test/check_allowed_functions.sh @@ -6,7 +6,7 @@ check_binary_symbols() { echo "Error: Binary file '$binary' not found." exit 1 fi - local undefined_symbols=$(nm -u "$binary" | tr -d '_') + local undefined_symbols=$(nm -u "$binary" | sed 's/^_*//') for symbol in $undefined_symbols; do if [[ ! " ${allowed_functions[@]} " =~ " ${symbol}" ]]; then echo "Error: $binary: Disallowed function used: ${symbol}"