From 57d22d33f44202fbb5014dd09bb1044eec2171ce Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 16 Jul 2009 10:00:15 +0000 Subject: [PATCH] Fix script for vtape tests git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9022 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5