diff options
author | Jim Meyering <jim@meyering.net> | 2001-04-02 12:37:38 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-04-02 12:37:38 +0000 |
commit | 4435f690357e33be62f6d29d773f51e7245fe9f3 (patch) | |
tree | 1ff83d22fe31877d3b4274c949456a4611fe4bf3 /tests | |
parent | 46e9ed6beb3adf84c1a023af9082c0508ad07b1d (diff) | |
download | coreutils-4435f690357e33be62f6d29d773f51e7245fe9f3.tar.xz |
Skip nonexistent directories.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/mv/setup | 4 |
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. |