Просмотр исходного кода

Merge branch 'master' of github.com:profplump/UberZach-Video

Zachary Kotlarek 11 лет назад
Родитель
Сommit
30bf7491ed
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      findAllTorrents.sh

+ 2 - 2
findAllTorrents.sh

@@ -47,13 +47,13 @@ while read -d $'\0' SERIES ; do
 			echo "Timeout searching: ${SERIES}" 1>&2
 			echo "Timeout searching: ${SERIES}" 1>&2
 		else
 		else
 			echo "Error searching: ${SERIES}" 1>&2
 			echo "Error searching: ${SERIES}" 1>&2
-		if
+		fi
 		continue
 		continue
 	fi
 	fi
 
 
 	# Download, if we found anything
 	# Download, if we found anything
 	if [ -n "${URLS}" ]; then
 	if [ -n "${URLS}" ]; then
-		if ! "${URLS}" | ~/bin/download; then
+		if ! echo "${URLS}" | ~/bin/download; then
 			echo "Error downloading: ${SERIES}" 1>&2
 			echo "Error downloading: ${SERIES}" 1>&2
 			continue
 			continue
 		fi
 		fi