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/cp-parents | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cp/cp-parents') diff --git a/tests/cp/cp-parents b/tests/cp/cp-parents index c11accbbf..7c693cf16 100755 --- a/tests/cp/cp-parents +++ b/tests/cp/cp-parents @@ -10,8 +10,8 @@ fi umask 022 pwd=`pwd` -tmp=cp-parents.$$ -trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $tmp && exit $status' 0 +t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$ +trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $t0 && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 @@ -23,7 +23,7 @@ cd $pwd || framework_failure=1 . $srcdir/../envvar-check -mkdir $tmp || framework_failure=1 +mkdir -p $tmp || framework_failure=1 cd $tmp || framework_failure=1 . $abs_srcdir/../setgid-check -- cgit v1.2.3-70-g09d2