summaryrefslogtreecommitdiff
path: root/tests/mv
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-04-02 12:37:38 +0000
committerJim Meyering <jim@meyering.net>2001-04-02 12:37:38 +0000
commit4435f690357e33be62f6d29d773f51e7245fe9f3 (patch)
tree1ff83d22fe31877d3b4274c949456a4611fe4bf3 /tests/mv
parent46e9ed6beb3adf84c1a023af9082c0508ad07b1d (diff)
downloadcoreutils-4435f690357e33be62f6d29d773f51e7245fe9f3.tar.xz
Skip nonexistent directories.
Diffstat (limited to 'tests/mv')
-rwxr-xr-xtests/mv/setup4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mv/setup b/tests/mv/setup
index dad840ddb..c5604a0d2 100755
--- a/tests/mv/setup
+++ b/tests/mv/setup
@@ -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.