From 2f2de7436a17caa55f86c697e315bf09d48961a9 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 21 Jun 2008 20:12:19 +0000 Subject: [PATCH] ebl fix shell case..esac default condition git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7211 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/cleanup-tape.in | 2 +- regress/scripts/prepare-two-tapes.in | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5