]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix bash vs sh substitution
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 6 Nov 2008 14:03:36 +0000 (14:03 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 6 Nov 2008 14:03:36 +0000 (14:03 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7992 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions

index cbe7df80a6e98d75b4b8be1a45cec517107c5407..37d190b3074a3fb75ed5d1b86ae45b89ece5c870 100644 (file)
@@ -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