[OpenWrt-Devel] [PATCH] tools/pkg-config: run wrapper script though shellcheck
Rosen Penev
rosenp at gmail.com
Wed Jan 8 02:25:07 EST 2020
Added \ and newlines for readability
Fixed SC2068 and SC2086, both are quoting issues.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
tools/pkg-config/files/pkg-config | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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" \
+"$@"
--
2.24.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list