Add check for empty lines

This commit is contained in:
icenine451 2023-04-13 19:08:28 -04:00
parent de7c189a36
commit 7a121068e7

View file

@ -15,7 +15,7 @@ echo
while IFS="^" read -r url placeholder while IFS="^" read -r url placeholder
do do
if [[ ! $url == "#"* ]]; then if [[ ! "$url" == "#"* ]] && [[ ! -z "$url"]]; then
echo echo
echo "Placeholder text: $placeholder" echo "Placeholder text: $placeholder"
echo "URL to hash: $url" echo "URL to hash: $url"
@ -26,4 +26,4 @@ do
fi fi
done < "$sha_update_list" done < "$sha_update_list"
echo "Done updating manifest hashes." echo "Done updating manifest hashes."