Skip to content

Commit

Permalink
buildinfo: Ensure we accept buildinfo 1 and 2
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron committed Jun 2, 2021
1 parent 30f4ce3 commit 805345a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildinfo
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function parse_line () {

case "${key}" in
"format")
if [[ ${format} -ne ${val} ]]; then
if [[ ${val} -ne 1 && ${val} -ne 2 ]]; then
echo "incompatible format (want ${format}, got ${val})" >&2
exit 1
fi
Expand Down

0 comments on commit 805345a

Please sign in to comment.