Forgot about empty lines

This commit is contained in:
i.ortega 2020-05-08 17:46:01 +02:00
parent a273e9220c
commit 358358bf81
1 changed files with 2 additions and 2 deletions

4
wlvfs
View File

@ -57,7 +57,7 @@ fi
# Preprocessing
grep -vE '^#' "$subs_file" | while read -r line; do
grep -vE '^#|^$' "$subs_file" | while read -r line; do
channel=$(echo "$line" | awk '{print $1}')
last_video=$(echo "$line" | awk '{print $2}')
update_date=$(echo "$line" | awk '{print $3}')
@ -166,7 +166,7 @@ fi
rm "$videos_file") &
fi
grep -vE '^#' "$subs_file" | sort -rg -k 6 -k 5 -k 4 | while read -r line; do
grep -vE '^#|^$' "$subs_file" | sort -rg -k 6 -k 5 -k 4 | while read -r line; do
channel=$(echo "$line" | awk '{print $1}')
last_video=$(echo "$line" | awk '{print $2}')
update_date=$(echo "$line" | awk '{print $3}')