diff options
author | linimon <linimon@FreeBSD.org> | 2007-12-24 01:50:29 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2007-12-24 01:50:29 +0800 |
commit | bffa28022e02f757cad684406d983c2057bd8452 (patch) | |
tree | ca9f40468198672e5ad28bc8c7ee229f0c453a09 /Tools | |
parent | 5a704613f874555017e23666de9ed0ac18391309 (diff) | |
download | freebsd-ports-gnome-bffa28022e02f757cad684406d983c2057bd8452.tar.gz freebsd-ports-gnome-bffa28022e02f757cad684406d983c2057bd8452.tar.zst freebsd-ports-gnome-bffa28022e02f757cad684406d983c2057bd8452.zip |
Make the script less whiny for unpopulated builds.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dopackagestats | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/dopackagestats b/Tools/portbuild/scripts/dopackagestats index 247ef090c9dc..93b05f4d0f6b 100755 --- a/Tools/portbuild/scripts/dopackagestats +++ b/Tools/portbuild/scripts/dopackagestats @@ -63,10 +63,10 @@ write_row () { # work around the fact that 5-exp is really 6-exp-prime if [ ! -f $indexfile ]; then if [ -d $directory/ports ]; then - indexfile=$directory/ports/`cd $directory/ports&&ls INDEX* | head -1` + indexfile=$directory/ports/`cd $directory/ports&&ls INDEX* 2> /dev/null | head -1` else # work around the fact that 4 is EOL and thus has no ports/ directory - indexfile=$directory/logs/`cd $directory/logs&&ls INDEX* | head -1` + indexfile=$directory/logs/`cd $directory/logs&&ls INDEX* 2> /dev/null | head -1` fi fi |