Skip to content

fix(checkpkg): add a default value for terminal width

乾康 周 requested to merge wszqkzqk/devtools:checkpkg-default-columns into master
  • Ensures availability when $COLUMNS is not present

In some cases, the $COLUMNS variable may not exist and we may need to set a default value. This is also in line with the practice of this project before: src/diffpkg.in#L156.

Otherwise, the checkpkg process may fail with:

==> Running checkpkg
  -> Checking packages
diff: invalid width ''
diff: Try 'diff --help' for more information.

/cc @lahwaacz @gromit

Merge request reports

Loading