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-5.2.1~1019 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc7ff23a3f3dc36ac85622c43c1337fba79f15d8;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}" }