summaryrefslogtreecommitdiff
path: root/build-member.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-member.sh')
-rwxr-xr-xbuild-member.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/build-member.sh b/build-member.sh
index 95e25b6..17d8e05 100755
--- a/build-member.sh
+++ b/build-member.sh
@@ -52,10 +52,17 @@ EOF
while read line
do
+ # Ignore empty lines.
+ if [[ ${line} =~ ^[[:space:]]*$ ]]
+ then
+ continue
+ fi
+
# Pasting from GDoc yields trailing spaces; remove those.
- if ! [[ ${line} =~ ([^:?]+[:?])\ (.+[^ ])\ * ]]
+ if ! [[ ${line} =~ ([^?]+\?)\ (.+[^ ])\ * ]]
then
>&2 echo "Invalid line: ${line}"
+ continue
fi
cat <<EOF