From ac7e7ff425d94b89f08b2b388ffe508b71acb5a4 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 31 Dec 2020 14:42:36 +0300 Subject: busybox|sbase build: fix shellcheck errors --- core/busybox/build | 2 +- core/sbase/build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/busybox/build b/core/busybox/build index f8c919ec..a34e5e3c 100755 --- a/core/busybox/build +++ b/core/busybox/build @@ -11,7 +11,7 @@ for patch in *.patch; do done if [ "$CPT_CROSS_TRIPLET" ]; then - mk() { make ARCH=${CPT_CROSS_TRIPLET%%-*} CROSS_COMPILE=$CPT_CROSS_TRIPLET- "$@" ;} + mk() { make "ARCH=${CPT_CROSS_TRIPLET%%-*}" "CROSS_COMPILE=$CPT_CROSS_TRIPLET-" "$@" ;} else mk() { make "$@" ;} fi diff --git a/core/sbase/build b/core/sbase/build index c4f56dc7..437ffb66 100755 --- a/core/sbase/build +++ b/core/sbase/build @@ -4,7 +4,7 @@ AR=$CPT_CROSS_TRIPLET-ar \ RANLIB=$CPT_CROSS_TRIPLET-ranlib -: ${CC:=cc} ${AR:=ar} ${RANLIB:=ranlib} +: "${CC:=cc}" "${AR:=ar}" "${RANLIB:=ranlib}" make CC=$CC AR=$AR RANLIB=$RANLIB LDFLAGS="$LDFLAGS -static" sbase-box make PREFIX=/usr DESTDIR="$1" sbase-box-install -- cgit v1.2.3