commit 6074f0b0942a70426e0b3e9a854ad910a523a585
parent 5c1dd087114ffc67ed68203da17a41a307cd7565
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Sun, 27 Oct 2024 22:00:14 -0700
Only require two fields in alloc data
If you don't want to give a description or anything that's fine.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/alloc b/alloc
@@ -30,8 +30,8 @@ BEGIN {
next
}
- if (NF <= 2 || $2 !~ /^[0-9]+([.][0-9]+)?$/)
- die("Invalid entry")
+ if (NF < 2 || $2 !~ /^[0-9]+([.][0-9]+)?$/)
+ die($0 ": Invalid entry")
match($0, IFS);
first = substr($0, 1, RSTART + RLENGTH - 1)