Skip to content

Commit 92053f3

Browse files
committed
[fix] : Fixed pkgbuild depends (readarray -t)
1 parent 398e5ee commit 92053f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/pkgbuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ readarray -t pkgbuild_dirs < <(ls "${pkgbuild_dir}" 2> /dev/null)
9999
if (( "${#pkgbuild_dirs[@]}" != 0 )); then
100100
for _dir in "${pkgbuild_dirs[@]}"; do
101101
cd "${_dir}"
102-
readarray depends < <(source "${pkgbuild_dir}/${_dir}/PKGBUILD"; printf "%s\n" "${depends[@]}")
103-
readarray makedepends < <(source "${pkgbuild_dir}/${_dir}/PKGBUILD"; printf "%s\n" "${makedepends[@]}")
102+
readarray -t depends < <(source "${pkgbuild_dir}/${_dir}/PKGBUILD"; printf "%s\n" "${depends[@]}")
103+
readarray -t makedepends < <(source "${pkgbuild_dir}/${_dir}/PKGBUILD"; printf "%s\n" "${makedepends[@]}")
104104
if (( ${#depends[@]} + ${#makedepends[@]} != 0 )); then
105105
for _pkg in "${depends[@]}" "${makedepends[@]}"; do
106106
if pacman -Ssq "${_pkg}" | grep -x "${_pkg}" 1> /dev/null; then

0 commit comments

Comments
 (0)