Browse Source

sde-download: silenced errors while `find`ing altdir

user/amery/test/random-cleanup
Alejandro Mery 15 years ago
parent
commit
4addc5a6aa
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      bin/sde-download

+ 3
- 2
bin/sde-download

@ -349,9 +349,10 @@ download_file() {
# Alternative Directory # Alternative Directory
# #
if [ -d "$altdir" ] ; then if [ -d "$altdir" ] ; then
altfile=$(find -L "$altdir/" -name `basename $bzfile` | head -n 1)
altfile=$(find -L "$altdir/" -name `basename $bzfile` 2> /dev/null |
head -n 1)
else else
altfile=
altfile=
fi fi
if [ -s "$altfile" ] ; then if [ -s "$altfile" ] ; then

Loading…
Cancel
Save