summaryrefslogtreecommitdiff
path: root/tests/rm/r-2
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-20 08:48:39 +0000
committerJim Meyering <jim@meyering.net>2000-05-20 08:48:39 +0000
commit619ffb2bff2e87d077562d024dfd10a202fda885 (patch)
treead39f92d67515ddadb54ffa8339435d3f79d9213 /tests/rm/r-2
parentabd2b295f2fb91decd4bc5503df3c370f8d4df57 (diff)
downloadcoreutils-619ffb2bff2e87d077562d024dfd10a202fda885.tar.xz
fail if final rm fails
Diffstat (limited to 'tests/rm/r-2')
-rwxr-xr-xtests/rm/r-22
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rm/r-2 b/tests/rm/r-2
index e33a69d7c..596581cd3 100755
--- a/tests/rm/r-2
+++ b/tests/rm/r-2
@@ -7,7 +7,7 @@ fi
pwd=`pwd`
tmp=r2-$$
-trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
+trap 'status=$?; cd $pwd; rm -rf $tmp || exit $?; exit $status' 0
trap 'exit $?' 1 2 13 15
framework_failure=0