Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fc7f59

Browse files
authored
Merge pull request #374 from python/fix_check_dups
fix dict_dups check
2 parents 2aac13b + 938c88c commit 7fc7f59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ wrap: venv
100100
SHELL:=/bin/bash
101101
.ONESHELL:
102102
dict_dups:
103-
if [[ $$(cat dict| sort | uniq -dc) ]]; then\
104-
echo -e "\n\n\n ####################### \n\n\n"
103+
if [[ $$(cat dict| sort | uniq -dc) ]]; then
104+
echo -e "\n #######################\n"
105105
echo "duplicated lines in the dict file"
106-
uniq -dc dict
106+
sort dict | uniq -dc |sort -h
107107
exit 1
108108
else
109109
echo "no duplicated lines"

0 commit comments

Comments
 (0)