summaryrefslogtreecommitdiffstats
path: root/db-inc
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2006-05-07 20:02:42 +0200
committerJudd Vinet <judd@archlinux.org>2006-05-07 20:02:42 +0200
commit4536b36df32bd4d5b2a22c667d6faae21be2c87e (patch)
tree902a48687e5985c326f0713de80f3ba56d97e75c /db-inc
parent2d8cc96bf6eada340975827b8f631496da79e63b (diff)
downloaddbscripts-4536b36df32bd4d5b2a22c667d6faae21be2c87e.tar.gz
dbscripts-4536b36df32bd4d5b2a22c667d6faae21be2c87e.tar.xz
suppress errors in first ls check
Diffstat (limited to 'db-inc')
-rw-r--r--db-inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-inc b/db-inc
index 5e2eff0..a984ca9 100644
--- a/db-inc
+++ b/db-inc
@@ -1,4 +1,4 @@
-# $Id: db-inc,v 1.5 2006/05/05 01:38:33 judd Exp $
+# $Id: db-inc,v 1.6 2006/05/07 18:02:42 judd Exp $
[ "$UID" = "" ] && UID=`uid`
TMPDIR="/tmp/archpkg.$arch.$repoid.$UID"
@@ -56,7 +56,7 @@ cd $TMPDIR
# Checkout the CVS module if we need to
updatelists=
-if [ "`ls $stagedir/add`" -o "`ls $stagedir/del`" ]; then
+if [ "`ls $stagedir/add 2>/dev/null`" -o "`ls $stagedir/del 2>/dev/null`" ]; then
# if $cvsdir is set, then use that instead of doing our own cvs checkout
if [ "$cvsdir" ]; then
mv $cvsdir $TMPDIR/$cvsmod