]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Skip nonexistent directories.
authorJim Meyering <jim@meyering.net>
Mon, 2 Apr 2001 12:37:38 +0000 (12:37 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 2 Apr 2001 12:37:38 +0000 (12:37 +0000)
tests/mv/setup

index dad840ddb8731c7d72e2062f820258c5744603ea..c5604a0d2d7f49f1cc9e8e09be32159db841dc9a 100755 (executable)
@@ -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.