From a695591eebb7e426c7c5d80b35537f7cd12ea79d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 6 Nov 2008 14:03:36 +0000 Subject: [PATCH] ebl fix bash vs sh substitution git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7992 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/scripts/functions b/regress/scripts/functions index cbe7df80a6..37d190b307 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -228,13 +228,13 @@ change_jobname() check_two_logs() { grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null - bstat=${bstat-$?} + bstat=${bstat:-$?} grep "^ Termination: .*Backup Error" tmp/log1.out 2>&1 >/dev/null if test $? -eq 0; then bstat=2 fi grep "^ Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null - rstat=${rstat-$?} + rstat=${rstat:-$?} grep "^ Termination: .*Restore Error" tmp/log2.out 2>&1 >/dev/null if test $? -eq 0; then rstat=2 -- 2.39.5