msys2 / msys2-pacman

A friendly fork of https://gitlab.archlinux.org/pacman/pacman
GNU General Public License v2.0
21 stars 12 forks source link

[BACKPORT] libmakepkg: fix compatibility with bash-5.2 globskipdots #21

Closed lazka closed 1 year ago

lazka commented 1 year ago

Bash 5.2 has a new globskipdots option, which is enabled by default. The check_dotfiles lint fails with globskipdots due to the assumption that at least the "." and ".." paths will match. Disabling globskipdots would be the usual solution, but that fails on bash<5.2. Instead, enable nullglob for this check.

Signed-off-by: Allan McRae allan@archlinux.org