updated find_duplicate_pip_requirements.sh

pull/2/head
Hari Sekhon 6 years ago
parent 0b4e84ca56
commit e66ace898c

@ -38,6 +38,8 @@ for x in $@; do
esac
done
found=0
sed 's/#.*//;
s/[<>=].*//;
s/^[[:space:]]*//;
@ -47,4 +49,9 @@ sort |
uniq -d |
while read module; do
grep "^$module[<>=]" "$@"
let found+=1
done
if [ $found -gt 0 ]; then
exit 1
fi

Loading…
Cancel
Save