From: Eric Bollengier Date: Thu, 14 Oct 2010 13:29:30 +0000 (+0200) Subject: regress: use tmp for change_jobname temp files X-Git-Tag: Release-7.0.0~1484 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da70a23fda42e4cab43c4879650555a2d3fe8d43;p=bacula%2Fbacula regress: use tmp for change_jobname temp files --- 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}" }