1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-18 01:18:51 +02:00

Skip nonexistent directories.

This commit is contained in:
Jim Meyering
2001-04-02 12:37:38 +00:00
parent 46e9ed6beb
commit 4435f69035
+4
View File
@@ -17,6 +17,10 @@ other_partition_tmpdir=
# if the mount point name contains `% '.
dot_mount_point=`df --no-sync -P . | sed -n '2s/.*% *//p'`
for d in $CANDIDATE_TMP_DIRS; do
# Skip nonexistent directories.
test -d $d || continue
d_mount_point=`df --no-sync -P $d | sed -n '2s/.*% *//p'`
# Same partition? Skip it.