summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-02-23 03:56:29 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-02-23 03:56:29 +0100
commitba7968503f18e5a2537d7d87ce2a5caa582f04f7 (patch)
treea038e7f3f7b81856799b3045d28cd03cc94e91da
parent0130eca14ee619d5ffe5afeebcff2522bdfd06a2 (diff)
Hide 'file not found' message
-rwxr-xr-xmisc-scripts/ftpdir-cleanup2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup
index ccd867e..a185090 100755
--- a/misc-scripts/ftpdir-cleanup
+++ b/misc-scripts/ftpdir-cleanup
@@ -77,7 +77,7 @@ for arch in ${ARCHES[@]}; do
pkgname="$(getpkgname $pkg)"
for p in ${TMPDIR}/${pkgname}-*; do
[ ! -d "${p}" ] || continue 2
- dbpkgname=$(grep -A1 '^%FILENAME%$' "${p}/desc" | tail -n1)
+ dbpkgname=$(grep -A1 '^%FILENAME%$' "${p}/desc" 2>/dev/null| tail -n1)
if [ "${dbpkgname}" = "${pkgname}" ]; then
continue 2
fi