updated find_duplicate_pip_requirements.sh

pull/2/head
Hari Sekhon 5 years ago
parent bf05ad460f
commit ea6c7aa01d

@ -17,22 +17,16 @@
set -euo pipefail set -euo pipefail
[ -n "${DEBUG:-}" ] && set -x [ -n "${DEBUG:-}" ] && set -x
srcdir="$(dirname "$0")"
usage(){ # shellcheck disable=SC1090
if [ -n "$*" ]; then . "$srcdir/lib/utils.sh"
echo "$@"
echo
fi
cat <<EOF
usage: ${0##*/} <files> # shellcheck disable=SC2034
usage_args="<files>"
EOF for x in "$@"; do
exit 3 case "$x" in
}
for x in $@; do
case $x in
-h|--help) usage -h|--help) usage
;; ;;
esac esac
@ -40,8 +34,8 @@ done
found=0 found=0
while read module; do while read -r module ; do
grep "^$module[<>=]" "$@" grep "^${module}[<>=]" "$@"
((found++)) ((found++))
done < <( done < <(
sed 's/#.*//; sed 's/#.*//;

Loading…
Cancel
Save