From: Eric Bollengier Date: Thu, 16 Jul 2009 10:00:15 +0000 (+0000) Subject: Fix script for vtape tests X-Git-Tag: Release-3.0.2~44 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=57d22d33f44202fbb5014dd09bb1044eec2171ce;p=bacula%2Fbacula Fix script for vtape tests git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9022 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/functions b/regress/scripts/functions index 0cd185db8e..aae48d2a01 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -353,10 +353,10 @@ init_slot() SLOT=$2 if test -n "$DRIVE" -a -n "$SLOT"; then if test ! -c $DRIVE -a ! -b $DRIVE -a x$USE_VTAPE != x ; then + dir=`dirname $DRIVE` if [ ! -d "$dir" ]; then mkdir -p "$dir" fi - dir=`dirname $DRIVE` touch $dir/slot$SLOT fi fi