]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix script for vtape tests
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 16 Jul 2009 10:00:15 +0000 (10:00 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 16 Jul 2009 10:00:15 +0000 (10:00 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9022 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions

index 0cd185db8e138dcbb29c4d297c7d995ea3877c90..aae48d2a016b6cf094778379bd07eb1ceb945b29 100644 (file)
@@ -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