Skip to content

Commit

Permalink
simplify by using -n. SC2236
Browse files Browse the repository at this point in the history
I agree to license my contributions to each file under the terms given
at the top of each file I changed.
  • Loading branch information
reubenmiller committed Mar 13, 2024
1 parent 99d56aa commit bd01342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mk/check-symbol-prefixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ nm_exe="${llvm_root}/llvm-nm"
find "target/$target" -type f -name libring-*.rlib | while read -r infile; do
bad=$($nm_exe --defined-only --extern-only --print-file-name "$infile" \
| ( grep -v -E " . _?(__imp__ZN4ring|ring_core_|__rustc|_ZN|DW.ref.rust_eh_personality)" || [[ $? == 1 ]] ))
if [ ! -z "${bad-}" ]; then
if [ -n "${bad-}" ]; then
echo "$bad"
exit 1
fi
Expand Down

0 comments on commit bd01342

Please sign in to comment.