From: Alexander Wirt Date: Sat, 5 Oct 2013 10:27:15 +0000 (+0200) Subject: Ignore YAML document seperator X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe46536c96213a9f98dbd1b6d5b2edadba9c490e;p=pwstore Ignore YAML document seperator --- diff --git a/pws b/pws index 83ab6bb..5ff3c68 100755 --- a/pws +++ b/pws @@ -306,7 +306,7 @@ class GroupConfig users.split("\n").each do |line| lno = lno+1 next if line =~ /^$/ - next if line =~ /^#/ + next if line =~ /^(#|---)/ if (m = /^(#{USER_PATTERN})\s*=\s*([0-9A-Fa-f]{40})\s*$/.match line) user = m[1] fpr = m[2]