Skip to content

Commit 805345a

Browse files
committed
buildinfo: Ensure we accept buildinfo 1 and 2
Signed-off-by: Morten Linderud <morten@linderud.pw>
1 parent 30f4ce3 commit 805345a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function parse_line () {
3434

3535
case "${key}" in
3636
"format")
37-
if [[ ${format} -ne ${val} ]]; then
37+
if [[ ${val} -ne 1 && ${val} -ne 2 ]]; then
3838
echo "incompatible format (want ${format}, got ${val})" >&2
3939
exit 1
4040
fi

0 commit comments

Comments
 (0)