Use more portable switch for uniq to unbreak osx build

This commit is contained in:
Jakub Jelen 2021-03-03 12:19:26 +01:00 committed by Jakub Jelen
parent 1ef79e99f7
commit 8d61d0d20d
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ EXPORTS=`find "${SOURCE_PATH}" -name "*exports"`
ERRORS=0
for E in $EXPORTS; do
NUM_DUPES=`sort $E | uniq -D | wc -l`
NUM_DUPES=`sort $E | uniq -d | wc -l`
if [[ "$NUM_DUPES" != 0 ]]; then
echo "There are duplicate symbols in '$E'"
ERRORS=1