Browse Source

Fix count

Zachary Kotlarek 8 years ago
parent
commit
10fc844707
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tvdup.sh

+ 2 - 1
tvdup.sh

@@ -6,6 +6,7 @@ NOW="`date '+%s'`"
 THEN=$(( $NOW - 3600 ))
 THEN=$(( $NOW - 3600 ))
 
 
 function updateCount() {
 function updateCount() {
+	count=0
 	for i in "${dir}/${num} - "*; do
 	for i in "${dir}/${num} - "*; do
 		if echo "${i}" | grep -q '.nfo$'; then
 		if echo "${i}" | grep -q '.nfo$'; then
 			continue
 			continue
@@ -58,7 +59,7 @@ while IFS= read -r -d '' lpath; do
 
 
 	# Use mkvRename (which protects against small files internally)
 	# Use mkvRename (which protects against small files internally)
 	sudo chattr -i "${id}"*
 	sudo chattr -i "${id}"*
-	~/bin/video/mkvRename "${lpath}"
+	QUIET=1 ~/bin/video/mkvRename "${lpath}"
 
 
 	# Skip if we're down to one
 	# Skip if we're down to one
 	updateCount
 	updateCount