iso/ports/checkdups
2007-10-14 11:14:33 -05:00

12 lines
216 B
Bash
Executable File

#!/bin/sh
echo "Checking for duplicate packages..."
DUPS="`find . -name \"*.pkg.tar.gz\" | cut -d/ -f2- | cut -d# -f1 | uniq -d | cut -d/ -f-2`"
if [ ! -z "$DUPS" ]
then
echo "Duplicate(s) found:"
echo $DUPS
fi