]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
use trap stuff from sample-test
authorJim Meyering <jim@meyering.net>
Sat, 15 Jun 2002 10:04:30 +0000 (10:04 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Jun 2002 10:04:30 +0000 (10:04 +0000)
tests/chmod/equal-x

index e938dc0482e8a5088b9e66c03bf2746478ba1bee..49f81f28e36585474c4a61fa1b0e6f187c547d27 100755 (executable)
@@ -6,8 +6,8 @@ if test "$VERBOSE" = yes; then
 fi
 
 pwd=`pwd`
-tmp=eq-x-$$
-trap 'status=$?; cd $pwd; chmod -R a+rwx $tmp; rm -rf $tmp && exit $status' 0
+t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
+trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
 trap '(exit $?); exit' 1 2 13 15
 
 framework_failure=0