Skip to content

Commit

Permalink
Fix issues with bash 5.2
Browse files Browse the repository at this point in the history
This new version has some compatiblity issues, see the issue at https://bugs.archlinux.org/task/76035
  • Loading branch information
davidgfnet committed Jun 27, 2023
1 parent 45f9780 commit 8fb7463
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions patches/pacman-6.0.1.patch
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,15 @@ index e398855..15b00de 100644
pm_printf(ALPM_LOG_ERROR, _("you cannot perform this operation unless you are root.\n"));
cleanup(EXIT_FAILURE);
}
diff --git a/scripts/libmakepkg/lint_package/dotfiles.sh.in b/scripts/libmakepkg/lint_package/dotfiles.sh.in
index 0b993dd4..4c447bd0 100644
--- a/scripts/libmakepkg/lint_package/dotfiles.sh.in
+++ b/scripts/libmakepkg/lint_package/dotfiles.sh.in
@@ -34,6 +34,7 @@ check_dotfiles() {
shopt -s nullglob

for f in "$pkgdir"/.*; do
+ [[ -e "${f}" ]] || continue
[[ ${f##*/} == . || ${f##*/} == .. ]] && continue
error "$(gettext "Dotfile found in package root '%s'")" "$f"
ret=1

0 comments on commit 8fb7463

Please sign in to comment.