fixed bugs
This commit is contained in:
parent
bfdadaea4b
commit
70204c7bf1
3 changed files with 6 additions and 10 deletions
12
src/backbit
12
src/backbit
|
@ -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 ]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue