1
0
Fork 0
mirror of https://github.com/Jonny007-MKD/OTR-SaneRename synced 2024-05-08 21:54:04 +02:00

Log errors only once

This commit is contained in:
Jonny007-MKD 2014-09-04 14:09:02 +02:00
parent 40e36a79a5
commit 4f18eb51c8

View file

@ -31,7 +31,10 @@ function eecho {
}
function logNexit {
echo "$1 - $file_name - $series_title" >> "$PwD/log"
str="$1 - $file_name - $series_title"
if ! grep -q "$str" "$PwD/log" ; then
echo "$str" >> "$PwD/log"
fi
exit $1
}