From: Eric Bollengier Date: Sat, 21 Jun 2008 20:12:19 +0000 (+0000) Subject: ebl fix shell case..esac default condition X-Git-Tag: Release-3.0.0~1253 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f2de7436a17caa55f86c697e315bf09d48961a9;p=bacula%2Fbacula ebl fix shell case..esac default condition git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7211 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/cleanup-tape.in b/regress/scripts/cleanup-tape.in index 6eadd69cb5..86c3a198de 100755 --- a/regress/scripts/cleanup-tape.in +++ b/regress/scripts/cleanup-tape.in @@ -19,7 +19,7 @@ if test x@autochanger@ != x/dev/null; then ;; $SLOT1) ;; - default) + *) bin/@changer_script@ @autochanger@ unload $slot @tape_drive@ $DRIVE1 bin/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1 ;; diff --git a/regress/scripts/prepare-two-tapes.in b/regress/scripts/prepare-two-tapes.in index 8e1cfa0cc1..1093895ab7 100755 --- a/regress/scripts/prepare-two-tapes.in +++ b/regress/scripts/prepare-two-tapes.in @@ -30,7 +30,7 @@ if test x@autochanger@ != x/dev/null; then $SLOT2) slot=$SLOT2 ;; - default) + *) bin/@changer_script@ @autochanger@ unload $slot @tape_drive@ $DRIVE1 bin/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1 slot=$SLOT1 @@ -48,7 +48,7 @@ if test x@autochanger@ != x/dev/null; then $SLOT2) bin/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1 ;; - default) + *) echo "Something went wrong. Expected $SLOT1 or $SLOT2, got $slot" exit 1 esac