summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-03-17 19:14:15 +0100
committerJudd Vinet <judd@archlinux.org>2004-03-17 19:14:15 +0100
commitc73bc36772e5811700cc80cc24c8a759b16cbc1e (patch)
tree911217be1af6f0423f9529d5262e3ab4b5e60afb
parentc05e86b8d0fbef859f3f76d8897f1333d0ae49a1 (diff)
downloaddbscripts-c73bc36772e5811700cc80cc24c8a759b16cbc1e.tar.gz
dbscripts-c73bc36772e5811700cc80cc24c8a759b16cbc1e.tar.xz
Dale's fix for a bug in dupe-checking
-rwxr-xr-xgenpkglist4
1 files changed, 2 insertions, 2 deletions
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