]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix for peanut awk
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 24 Oct 2008 09:46:54 +0000 (09:46 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 24 Oct 2008 09:46:54 +0000 (09:46 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7890 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions

index 8e361865f16a10c678802318abd33ecb4eaebc47..cbe7df80a6e98d75b4b8be1a45cec517107c5407 100644 (file)
@@ -117,7 +117,7 @@ get_mig_info()
     # Prev Backup JobId
     JOBID=$1
     LOG=$2
-    RET=`awk -v jobid=$JOBID -F: '/Prev Backup JobId/ { cjid=$2 } /New Backup JobId/  { if (cjid == jobid) { print $2 } }' $LOG`
+    RET=`awk -F: "BEGIN { jobid=$JOBID } "'/Prev Backup JobId/ { cjid=$2 } /New Backup JobId/  { if (cjid == jobid) { print $2 } }' $LOG`
 }
 
 get_duration()