Fixed typo

This commit is contained in:
deajan 2016-08-17 10:44:28 +02:00
parent 565d0f5524
commit 2658730f70
2 changed files with 22 additions and 14 deletions

View File

@ -3,7 +3,7 @@ SUBPROGRAM=[prgname]
PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones
AUTHOR="(L) 2013-2016 by Orsiris de Jong" AUTHOR="(L) 2013-2016 by Orsiris de Jong"
CONTACT="http://www.netpower.fr - ozy@netpower.fr" CONTACT="http://www.netpower.fr - ozy@netpower.fr"
PROGRAM_BUILD=2016081702Xo PROGRAM_BUILD=2016081703
## Runs an osync /obackup instance for every conf file found ## Runs an osync /obackup instance for every conf file found
## If an instance fails, run it again if time permits ## If an instance fails, run it again if time permits
@ -84,15 +84,19 @@ function Batch {
## Get list of .conf files ## Get list of .conf files
for confFile in $CONF_FILE_PATH/*.conf for confFile in $CONF_FILE_PATH/*.conf
do do
if [ "$runList" == "" ]; then if [ -f "$confFile" ]; then
runList="$confFile" if [ "$runList" == "" ]; then
else runList="$confFile"
runList=$runList" $confFile" else
runList=$runList" $confFile"
fi
fi fi
done 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" runList="$CONF_FILE_PATH"
else fi
if [ "$runList" == "" ]; then
Logger "Cannot find conf file path [$CONF_FILE_PATH]." "CRITICAL" Logger "Cannot find conf file path [$CONF_FILE_PATH]." "CRITICAL"
Usage Usage
fi fi

View File

@ -3,7 +3,7 @@ SUBPROGRAM=obackup
PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones
AUTHOR="(L) 2013-2016 by Orsiris de Jong" AUTHOR="(L) 2013-2016 by Orsiris de Jong"
CONTACT="http://www.netpower.fr - ozy@netpower.fr" CONTACT="http://www.netpower.fr - ozy@netpower.fr"
PROGRAM_BUILD=2016081702Xo PROGRAM_BUILD=2016081703
## Runs an osync /obackup instance for every conf file found ## Runs an osync /obackup instance for every conf file found
## If an instance fails, run it again if time permits ## If an instance fails, run it again if time permits
@ -84,15 +84,19 @@ function Batch {
## Get list of .conf files ## Get list of .conf files
for confFile in $CONF_FILE_PATH/*.conf for confFile in $CONF_FILE_PATH/*.conf
do do
if [ "$runList" == "" ]; then if [ -f "$confFile" ]; then
runList="$confFile" if [ "$runList" == "" ]; then
else runList="$confFile"
runList=$runList" $confFile" else
runList=$runList" $confFile"
fi
fi fi
done 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" runList="$CONF_FILE_PATH"
else fi
if [ "$runList" == "" ]; then
Logger "Cannot find conf file path [$CONF_FILE_PATH]." "CRITICAL" Logger "Cannot find conf file path [$CONF_FILE_PATH]." "CRITICAL"
Usage Usage
fi fi