From c73bc36772e5811700cc80cc24c8a759b16cbc1e Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Wed, 17 Mar 2004 18:14:15 +0000 Subject: Dale's fix for a bug in dupe-checking --- genpkglist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'genpkglist') diff --git a/genpkglist b/genpkglist index 83e16a6..b740a2c 100755 --- a/genpkglist +++ b/genpkglist @@ -1,5 +1,5 @@ #!/bin/bash -# $Id: genpkglist,v 1.9 2003/11/16 03:50:23 judd Exp $ +# $Id: genpkglist,v 1.10 2004/03/17 18:14:15 judd Exp $ # # genpkglist @@ -34,6 +34,6 @@ DUPES=`ls -1 /home/ftp/$1 | rev | cut -d- -f 3- | rev | sort | uniq -c | egrep - if [ -n "$DUPES" ]; then echo "Possible Dupes for $1 (please remove old versions)." echo "Date Filename" - for dupe in $DUPES; do ls -l /home/ftp/$1/$dupe* | awk '{print $6" "$7" "$8" "$9}'; done + for dupe in $DUPES; do ls -l /home/ftp/$1/${dupe}* | awk '{print $6" "$7" "$8" "$9}'; done fi -- cgit v1.2.3-24-g4f1b