diff options
author | Judd Vinet <judd@archlinux.org> | 2004-03-17 19:14:15 +0100 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2004-03-17 19:14:15 +0100 |
commit | c73bc36772e5811700cc80cc24c8a759b16cbc1e (patch) | |
tree | 911217be1af6f0423f9529d5262e3ab4b5e60afb /genpkglist | |
parent | c05e86b8d0fbef859f3f76d8897f1333d0ae49a1 (diff) | |
download | dbscripts-c73bc36772e5811700cc80cc24c8a759b16cbc1e.tar.gz dbscripts-c73bc36772e5811700cc80cc24c8a759b16cbc1e.tar.xz |
Dale's fix for a bug in dupe-checking
Diffstat (limited to 'genpkglist')
-rwxr-xr-x | genpkglist | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |