From 70204c7bf124b9344ee6c46759bc884dade108e9 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Mon, 7 Oct 2019 13:03:16 +0200 Subject: [PATCH] fixed bugs --- src/backbit | 12 ++++-------- src/backbitdb | 2 +- src/backbitdir | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/backbit b/src/backbit index ef5ecde..a9c6184 100755 --- a/src/backbit +++ b/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 ] diff --git a/src/backbitdb b/src/backbitdb index 8be3afc..d84f214 100755 --- a/src/backbitdb +++ b/src/backbitdb @@ -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 diff --git a/src/backbitdir b/src/backbitdir index 5b789b5..b90a70e 100755 --- a/src/backbitdir +++ b/src/backbitdir @@ -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