[OpenWrt-Devel,PATCHv2,2/3] tools/pkgconf: Run pkg-config wrapper through shellcheck
diff mbox series

Message ID 20191128191933.5421-2-rosenp@gmail.com
State Under Review
Delegated to: Petr Štetiar
Headers show
Series
  • [OpenWrt-Devel,PATCHv2,1/3] tools/pkg-config: Replace with pkgconf
Related show

Commit Message

Rosen Penev Nov. 28, 2019, 7:19 p.m. UTC
Mainly quoting fixes.

Separated parameters by \ for easier readability.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 v2: Removed calling by dirname.
 tools/pkgconf/files/pkg-config | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/tools/pkgconf/files/pkg-config b/tools/pkgconf/files/pkg-config
index 82cc74ffcb..fa1faccc6c 100755
--- a/tools/pkgconf/files/pkg-config
+++ b/tools/pkgconf/files/pkg-config
@@ -1,3 +1,6 @@ 
 #!/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" "$@"