From b57280bb24275c35857bf8c9893a9b331da9e655 Mon Sep 17 00:00:00 2001 From: Daniel Lee Harple Date: Sat, 23 Jul 2016 16:51:08 -0400 Subject: [PATCH] Remove whitespace from title length variable --- youtube-dl-parallel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube-dl-parallel b/youtube-dl-parallel index 1c9ad39..0366c90 100755 --- a/youtube-dl-parallel +++ b/youtube-dl-parallel @@ -74,7 +74,7 @@ function find_longest_title() { pushd "$TITLES_DIRECTORY" > /dev/null for title_file in $(ls | sort -n); do local title=$(cat "$title_file") - local length=$(echo "$title" | wc -m) + local length=$(echo "$title" | wc -m | tr -d '[[:space:]]') if test $length -gt $TITLE_PADDING; then TITLE_PADDING=$length fi