From da70a23fda42e4cab43c4879650555a2d3fe8d43 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 14 Oct 2010 15:29:30 +0200 Subject: [PATCH] regress: use tmp for change_jobname temp files --- regress/scripts/functions | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regress/scripts/functions b/regress/scripts/functions index 1f002881e9..5c3ed5b55a 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -245,10 +245,10 @@ change_jobname() oldname=$1 newname=$2 fi - rm -f ${bin}/1 - mv ${conf}/bacula-dir.conf ${bin}/1 - echo "s%${oldname}%${newname}%g" >${tmp}/1 - sed -f ${tmp}/1 ${bin}/1 >${conf}/bacula-dir.conf + rm -f $tmp/1 $tmp/2 + mv ${conf}/bacula-dir.conf $tmp/1 + echo "s%${oldname}%${newname}%g" >$tmp/2 + sed -f $tmp/2 $tmp/1 >$conf/bacula-dir.conf # echo "Job ${oldname} changed to ${newname}" } -- 2.39.5