index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2023-04-29 13:41:49 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2023-04-29 13:41:49 +0200 |
commit | 52fea875e3ececd818b27cc4400dda25e4696051 (patch) | |
tree | 2ca8354290e38ea423c7aa8128c9df9c61dceadb /build-support/gcc11 | |
parent | 1f7a3bd06ad5c186a2344e6bc96f42dd241a5978 (diff) |
-rw-r--r-- | build-support/gcc11/PKGBUILD | 4 |
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 |