2
0
mirror of https://github.com/deajan/osync synced 2024-11-03 15:40:14 +00:00

Minor improvements to ExecTasksé

This commit is contained in:
deajan 2018-02-24 16:34:53 +01:00
parent d0bd873def
commit dee5b4037c

View File

@ -10,7 +10,7 @@
#command line arguments don't take -AaqV for example
_OFUNCTIONS_VERSION=2.3.0-dev
_OFUNCTIONS_BUILD=2018022001
_OFUNCTIONS_BUILD=2018022402
#### _OFUNCTIONS_BOOTSTRAP SUBSET ####
_OFUNCTIONS_BOOTSTRAP=true
#### _OFUNCTIONS_BOOTSTRAP SUBSET END ####
@ -876,12 +876,14 @@ function ExecTasks {
mainItemCount=$(wc -l < "$mainInput")
readFromFile=true
else
Logger "Cannot read file [$mainInput]." "WARN"
Logger "Cannot read main file [$mainInput]." "WARN"
fi
if [ "$auxInput" != "" ]; then
if [ -f "$auxInput" ]; then
auxItemCount=$(wc -l < "$auxInput")
else
Logger "Cannot read file [$auxInput]." "WARN"
Logger "Cannot read aux file [$auxInput]." "WARN"
fi
fi
fi