fixed bugs

This commit is contained in:
Carlos Galindo 2019-10-07 13:03:16 +02:00
parent bfdadaea4b
commit 70204c7bf1
Signed by: kauron
GPG Key ID: 83E68706DEE119A3
3 changed files with 6 additions and 10 deletions

View File

@ -20,18 +20,14 @@ then
. $confDir/before.sh
fi
for $conf in $(ls $confDir/db/*)
for conf in $(ls $confDir/db/*)
do
( source $conf
$(which backbitdb) > $logDir/$dbName.log
)
( source $conf; $(which backbitdb) $conf >> $logDir/$dbName.log )
done
for $conf in $(ls $confDir/dir/*)
for conf in $(ls $confDir/dir/*)
do
( source $conf
$(which backbitdir) > $logDir/$name.log
)
( source $conf; $(which backbitdir) $conf >> $logDir/$name.log )
done
if [ -x $confDir/after.sh ]

View File

@ -3,7 +3,7 @@
# Backup a sql database, args come from the environment
# $1, if it exists, contains a list of declarations
if [ -e $1 ]; then
if [ -e "$1" ]; then
source $1
fi

View File

@ -3,7 +3,7 @@
# Backup a directory, args come from the environment
# $1, if it exists, contains a list of declarations
if [ -e $1 ]; then
if [ -e "$1" ]; then
source $1
fi