From 7a121068e7fb46d5abedaf1303ec0d7f6609aa74 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 13 Apr 2023 19:08:28 -0400 Subject: [PATCH] Add check for empty lines --- automation_tools/update_sha.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automation_tools/update_sha.sh b/automation_tools/update_sha.sh index 552dc4cd..599910f6 100644 --- a/automation_tools/update_sha.sh +++ b/automation_tools/update_sha.sh @@ -15,7 +15,7 @@ echo while IFS="^" read -r url placeholder do - if [[ ! $url == "#"* ]]; then + if [[ ! "$url" == "#"* ]] && [[ ! -z "$url"]]; then echo echo "Placeholder text: $placeholder" echo "URL to hash: $url" @@ -26,4 +26,4 @@ do fi done < "$sha_update_list" -echo "Done updating manifest hashes." \ No newline at end of file +echo "Done updating manifest hashes."