From: Eric Bollengier Date: Thu, 6 Nov 2008 14:03:36 +0000 (+0000) Subject: ebl fix bash vs sh substitution X-Git-Tag: Release-3.0.0~631 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a695591eebb7e426c7c5d80b35537f7cd12ea79d;p=bacula%2Fbacula ebl fix bash vs sh substitution git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7992 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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