mirror of
https://github.com/deajan/obackup.git
synced 2024-12-26 07:23:41 +01:00
Fixed typo
This commit is contained in:
parent
565d0f5524
commit
2658730f70
@ -3,7 +3,7 @@ SUBPROGRAM=[prgname]
|
||||
PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones
|
||||
AUTHOR="(L) 2013-2016 by Orsiris de Jong"
|
||||
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
|
||||
PROGRAM_BUILD=2016081702Xo
|
||||
PROGRAM_BUILD=2016081703
|
||||
|
||||
## Runs an osync /obackup instance for every conf file found
|
||||
## If an instance fails, run it again if time permits
|
||||
@ -84,15 +84,19 @@ function Batch {
|
||||
## Get list of .conf files
|
||||
for confFile in $CONF_FILE_PATH/*.conf
|
||||
do
|
||||
if [ "$runList" == "" ]; then
|
||||
runList="$confFile"
|
||||
else
|
||||
runList=$runList" $confFile"
|
||||
if [ -f "$confFile" ]; then
|
||||
if [ "$runList" == "" ]; then
|
||||
runList="$confFile"
|
||||
else
|
||||
runList=$runList" $confFile"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ -f "$CONF_FILE_PATH" ] && [ "${CONF_FILE_PATH##*.}" == "conf" ]; then
|
||||
elif [ -f "$CONF_FILE_PATH" ] && [ "${CONF_FILE_PATH##*.}" == "conf" ]; then
|
||||
runList="$CONF_FILE_PATH"
|
||||
else
|
||||
fi
|
||||
|
||||
if [ "$runList" == "" ]; then
|
||||
Logger "Cannot find conf file path [$CONF_FILE_PATH]." "CRITICAL"
|
||||
Usage
|
||||
fi
|
||||
|
@ -3,7 +3,7 @@ SUBPROGRAM=obackup
|
||||
PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones
|
||||
AUTHOR="(L) 2013-2016 by Orsiris de Jong"
|
||||
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
|
||||
PROGRAM_BUILD=2016081702Xo
|
||||
PROGRAM_BUILD=2016081703
|
||||
|
||||
## Runs an osync /obackup instance for every conf file found
|
||||
## If an instance fails, run it again if time permits
|
||||
@ -84,15 +84,19 @@ function Batch {
|
||||
## Get list of .conf files
|
||||
for confFile in $CONF_FILE_PATH/*.conf
|
||||
do
|
||||
if [ "$runList" == "" ]; then
|
||||
runList="$confFile"
|
||||
else
|
||||
runList=$runList" $confFile"
|
||||
if [ -f "$confFile" ]; then
|
||||
if [ "$runList" == "" ]; then
|
||||
runList="$confFile"
|
||||
else
|
||||
runList=$runList" $confFile"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ -f "$CONF_FILE_PATH" ] && [ "${CONF_FILE_PATH##*.}" == "conf" ]; then
|
||||
elif [ -f "$CONF_FILE_PATH" ] && [ "${CONF_FILE_PATH##*.}" == "conf" ]; then
|
||||
runList="$CONF_FILE_PATH"
|
||||
else
|
||||
fi
|
||||
|
||||
if [ "$runList" == "" ]; then
|
||||
Logger "Cannot find conf file path [$CONF_FILE_PATH]." "CRITICAL"
|
||||
Usage
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user