]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove non-portable -e option in test
authorKern Sibbald <kern@sibbald.com>
Tue, 5 Jun 2007 16:58:53 +0000 (16:58 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 5 Jun 2007 16:58:53 +0000 (16:58 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4982 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/scripts/disk-changer.in

index 85de7bf1de9e15e9bf1c8da74b56f4fc0f75c3ed..404083e9bf9843257a6b0aacab3e576be474b25d 100644 (file)
@@ -64,7 +64,7 @@ wd=@working_dir@
 #
 dbgfile="$wd/disk-changer.log"
 debug() {
-    if test -e $dbgfile; then
+    if test -f $dbgfile; then
        echo "`date +\"%Y%m%d-%H:%M:%S\"` $*" >> $dbgfile
     fi
 }