mirror of
https://github.com/Jonny007-MKD/OTR-SaneRename
synced 2025-01-22 08:49:48 +01:00
Log errors only once
This commit is contained in:
parent
40e36a79a5
commit
4f18eb51c8
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue