From 23bcb3767f6d16eaba523055f0b8474bfbae16ba Mon Sep 17 00:00:00 2001 From: Max Rees Date: Sun, 21 Jul 2019 04:02:27 -0400 Subject: system/*: initial bashism removal --- system/gcc/APKBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/gcc/APKBUILD') diff --git a/system/gcc/APKBUILD b/system/gcc/APKBUILD index 5eaae5163..68771a8aa 100644 --- a/system/gcc/APKBUILD +++ b/system/gcc/APKBUILD @@ -343,7 +343,7 @@ package() { rm -f "$pkgdir"/usr/lib/libffi* "$pkgdir"/usr/share/man/man3/ffi* find "$pkgdir" -name 'ffi*.h' | xargs rm -f - local gdblib=${_target:+$CTARGET/}lib + local gdblib="${_target:+$CTARGET/}lib" for i in $(find "$pkgdir"/usr/$gdblib/ -type f -maxdepth 1 -name "*-gdb.py" ); do mkdir -p "$pkgdir"/usr/share/gdb/python/auto-load/usr/$gdblib mv "$i" "$pkgdir"/usr/share/gdb/python/auto-load/usr/$gdblib/ @@ -368,7 +368,7 @@ package() { # linker finds the libs from relocated sysroot for so in "$pkgdir"/usr/$CTARGET/lib/*.so; do if [ -h "$so" ]; then - local _real=$(basename $(readlink "$so")) + local _real="$(basename $(readlink "$so"))" rm -f "$so" echo "GROUP ($_real)" > "$so" fi -- cgit v1.2.3-70-g09d2