summaryrefslogtreecommitdiff
path: root/tests/cp/cp-HL
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cp/cp-HL')
-rwxr-xr-xtests/cp/cp-HL6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cp/cp-HL b/tests/cp/cp-HL
index c2b0cf7b4..239ecebcb 100755
--- a/tests/cp/cp-HL
+++ b/tests/cp/cp-HL
@@ -9,12 +9,12 @@ fi
. $srcdir/../envvar-check
pwd=`pwd`
-tmp=cp-HL.$$
-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 $?' 1 2 13 15
framework_failure=0
-mkdir $tmp || framework_failure=1
+mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1
mkdir src-dir dest-dir || framework_failure=1