From 47c2233e4ec87e79a06a4ee21e0e47a2d5c03d20 Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Thu, 28 Apr 2022 19:52:34 +0000 Subject: [PATCH] fix rust bootstrap --- bootstrap/rust/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap/rust/build.sh b/bootstrap/rust/build.sh index ba67806..51752dc 100644 --- a/bootstrap/rust/build.sh +++ b/bootstrap/rust/build.sh @@ -17,14 +17,14 @@ build() { } package() { - stat $pkgdir/opt/rust/lib/rustlib/uninstall.sh > /dev/null 2> /dev/null \ + [ -f $pkgdir/opt/rust/lib/rustlib/uninstall.sh ] \ || ./rust-$pkgver-$ARCH-unknown-linux-musl/install.sh \ --disable-ldconfig \ --destdir=$pkgdir \ --prefix=/opt/rust - stat $pkgdir/opt/rust/lib/libgcc_s.so \ - || cp ./libgcc_s.so $pkgdir/opt/rust/lib/libgcc_s.so + [ -f $pkgdir/opt/rust/lib/libgcc_s.so.1 ] \ + || cp ./libgcc_s.so $pkgdir/opt/rust/lib/libgcc_s.so.1 } backup() {