From 306c8e8b4fec79a581f2cad7b160ba6f61f600ac Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 19 Apr 2002 21:55:30 +0000 Subject: Lots of clean-up: E.g., (exit $fail); exit t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0 --- tests/cp/backup-1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/cp/backup-1') diff --git a/tests/cp/backup-1 b/tests/cp/backup-1 index a5bfee603..3116dd165 100755 --- a/tests/cp/backup-1 +++ b/tests/cp/backup-1 @@ -6,8 +6,8 @@ if test "$VERBOSE" = yes; then fi pwd=`pwd` -tmp=`echo "$0"|sed 's,.*/,,'`.tmp -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ +trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 -- cgit v1.2.3-54-g00ecf