Skip to content

Commit

Permalink
fix shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
rask24 committed Feb 14, 2024
1 parent 4d5588e commit 6f1ee8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/check_allowed_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 6f1ee8b

Please sign in to comment.