1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 18:19:00 +02:00

Redirect errors (e.g. missing file) to /dev/null.

This commit is contained in:
Jim Meyering
2002-10-04 11:19:22 +00:00
parent c19dbea39c
commit 4adcccbf48
+3 -1
View File
@@ -27,7 +27,9 @@ for len in $symlink_name_lengths; do
# Ignore failures.
ln -fs $name $len > /dev/null 2>&1
done
du -a $symlink_name_lengths > out || fail=1
# Redirect errors (e.g. missing file) to /dev/null.
du -a $symlink_name_lengths > out 2> /dev/null || fail=1
# Require that at least one of these symlinks has a non-zero size.
grep '^[1-9]' out > /dev/null || fail=1