12 lines
216 B
Bash
Executable File
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
|