Skip to content

Commit 7d2dad2

Browse files
committed
libpsl.sh: fix shellcheck SC2046 [ci skip]
1 parent 8257a53 commit 7d2dad2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libpsl.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ _VER="$1"
2828
mkdir -p "${_BLDDIR}"
2929
(
3030
cd "${_BLDDIR}"
31-
# shellcheck disable=SC2046,SC2086
31+
# shellcheck disable=SC2086
32+
find ../src -name '*.c' -print0 | sort -z | xargs -0 -r \
3233
${_CC_GLOBAL} ${_CFLAGS_GLOBAL} ${_CFLAGS_GLOBAL_RAW} ${_CPPFLAGS_GLOBAL} \
3334
-DENABLE_BUILTIN -DPACKAGE_VERSION="\"${LIBPSL_VER_}\"" \
34-
-I. -I.. -I../include -c $(find ../src -name '*.c' | sort)
35-
# shellcheck disable=SC2046
36-
"${AR}" rcs libpsl.a $(find . -name '*.o' | sort)
35+
-I. -I.. -I../include -c --
36+
find . -name '*.o' -print0 | sort -z | xargs -0 -r \
37+
"${AR}" rcs libpsl.a
3738
)
3839

3940
# Install manually

0 commit comments

Comments
 (0)