diff mbox series

[OpenWrt-Devel] tools/pkg-config: run wrapper script though shellcheck

Message ID 20200108072507.3672087-1-rosenp@gmail.com
State Superseded
Headers show
Series [OpenWrt-Devel] tools/pkg-config: run wrapper script though shellcheck | expand

Commit Message

Rosen Penev Jan. 8, 2020, 7:25 a.m. UTC
Added \ and newlines for readability

Fixed SC2068 and SC2086, both are quoting issues.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 tools/pkg-config/files/pkg-config | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/pkg-config/files/pkg-config b/tools/pkg-config/files/pkg-config
index 82cc74ffcb..e90b301e7d 100755
--- a/tools/pkg-config/files/pkg-config
+++ b/tools/pkg-config/files/pkg-config
@@ -1,3 +1,7 @@ 
 #!/bin/sh
 
-pkg-config.real --define-variable=prefix=${STAGING_PREFIX} --define-variable=exec_prefix=${STAGING_PREFIX} --define-variable=bindir=${STAGING_PREFIX}/bin $@
+pkg-config.real \
+--define-variable=prefix="${STAGING_PREFIX}" \
+--define-variable=exec_prefix="${STAGING_PREFIX}" \
+--define-variable=bindir="${STAGING_PREFIX}/bin" \
+"$@"