meanfull messages

This commit is contained in:
6543 2019-05-11 21:51:02 +02:00
parent c918916b25
commit ebc7484c82

View File

@ -90,6 +90,7 @@ function main() {
if [ "0" == "$SIZE_new" ]; then
#file exist but empty
#rm "$FILE" <- secure? 2check
echo "FILE EMPTY: $FILE"
db_query "UPDATE File SET TTSync=$TTSYNC_DEL,TTCheck='$DATE' WHERE ID=$ID;"
else
#recalc md5 ... + check
@ -109,6 +110,7 @@ function main() {
}
else
# file dont exist
echo "FILE DEL/MV: $FILE"
db_query "UPDATE File SET TTSync=$TTSYNC_DEL,TTCheck='$DATE' WHERE ID=$ID;"
fi

@ -116,6 +118,7 @@ function main() {

#add new files ....
cat "$list_tmp/new" | while read line; do
echo "FILE ADD: $line"
file_add "$line"
done

@ -159,7 +162,7 @@ function file_add() {
local folder="$(echo "$relrevpath" | cut -d '/' -f 2- | rev)"
local FILE="$moviedir/$(echo "$relrevpath" | rev)"
[ -f "$FILE" ] || {
echo "ERROR: file_add: file not exist: $FILE"
echo "ERROR: file_add: file not exist: $FILE" >&2
return 1
}
[ $DEBUG == $TRUE ] && echo "add: $name" >&2