From a4f74dc7bb95d0fddcf016176ce16f3f56020a0e Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 24 Oct 2008 09:46:54 +0000 Subject: [PATCH] ebl Fix for peanut awk git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7890 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.5