Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-support/gcc11/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'build-support/gcc11/PKGBUILD')
-rw-r--r--build-support/gcc11/PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-support/gcc11/PKGBUILD b/build-support/gcc11/PKGBUILD
index 6f8a5b52..8a0bbee5 100644
--- a/build-support/gcc11/PKGBUILD
+++ b/build-support/gcc11/PKGBUILD
@@ -190,8 +190,8 @@ package_gcc11-libs() {
cd gcc-build
make -C $CHOST/libgcc DESTDIR="$pkgdir" install-shared
- if [ -d "$dir" ] && files=$(ls -qAH -- "$dir") && [ -z "$files" ]; then
- echo "${pkgdir}/${_libdir}"/../lib/ is empty"
+ if test [ -d "${pkgdir}/${_libdir}/../lib/" ] && files=$(ls -qAH -- "${pkgdir}/${_libdir}/../lib") && [ -z "$files" ]; then
+ echo "${pkgdir}/${_libdir}/../lib/ is empty"
else
mv "${pkgdir}/${_libdir}"/../lib/* "${pkgdir}/${_libdir}"
fi