From: Eric Bollengier Date: Fri, 24 Oct 2008 09:46:54 +0000 (+0000) Subject: ebl Fix for peanut awk X-Git-Tag: Release-7.0.0~3865 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a4f74dc7bb95d0fddcf016176ce16f3f56020a0e;p=bacula%2Fbacula ebl Fix for peanut awk git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7890 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/functions b/regress/scripts/functions index 8e361865f1..cbe7df80a6 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -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()