]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: use tmp for change_jobname temp files
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 14 Oct 2010 13:29:30 +0000 (15:29 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 14 Oct 2010 13:29:30 +0000 (15:29 +0200)
regress/scripts/functions

index 1f002881e98bad9fd648133b3521187b43eb24d0..5c3ed5b55af7620d20ca56459ede1f15ad913e8a 100644 (file)
@@ -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}"
 }