mirror of
https://github.com/kevinveenbirkenbach/duplicate-file-handler.git
synced 2024-11-26 07:41:03 +01:00
Removed bug
This commit is contained in:
parent
c1cad6afe1
commit
aa09d1597e
@ -9,6 +9,12 @@ fi
|
|||||||
dir="$1"
|
dir="$1"
|
||||||
duplicates=$(find "$dir" -type f -exec md5sum {} + | sort | uniq -d -w32)
|
duplicates=$(find "$dir" -type f -exec md5sum {} + | sort | uniq -d -w32)
|
||||||
|
|
||||||
|
if [ -z "$duplicates" ]
|
||||||
|
then
|
||||||
|
echo "No duplicates found."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Duplicates found:"
|
echo "Duplicates found:"
|
||||||
|
|
||||||
echo "$duplicates" | while read line
|
echo "$duplicates" | while read line
|
||||||
|
Loading…
Reference in New Issue
Block a user