Skip to content

Commit 8033110

Browse files
committed
depends: Quote to prevent word splitting in config.site
SC2086 is disabled in our linter script so this wasn't caught.
1 parent 77b1ef8 commit 8033110

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

depends/config.site.in

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,74 +8,74 @@ true # Dummy command because shellcheck treats all directives before first
88
# See: https://github.com/koalaman/shellcheck/wiki/Directive
99

1010
# shellcheck disable=SC2154
11-
depends_prefix="$(cd "$(dirname ${ac_site_file})/.." && pwd)"
11+
depends_prefix="$(cd "$(dirname "$ac_site_file")/.." && pwd)"
1212

1313
cross_compiling=maybe
14-
host_alias=@HOST@
15-
ac_tool_prefix=${host_alias}-
14+
host_alias="@HOST@"
15+
ac_tool_prefix="${host_alias}-"
1616

17-
if test -z $with_boost; then
18-
with_boost=$depends_prefix
17+
if test -z "$with_boost"; then
18+
with_boost="$depends_prefix"
1919
fi
20-
if test -z $with_qt_plugindir; then
21-
with_qt_plugindir=$depends_prefix/plugins
20+
if test -z "$with_qt_plugindir"; then
21+
with_qt_plugindir="${depends_prefix}/plugins"
2222
fi
23-
if test -z $with_qt_translationdir; then
24-
with_qt_translationdir=$depends_prefix/translations
23+
if test -z "$with_qt_translationdir"; then
24+
with_qt_translationdir="${depends_prefix}/translations"
2525
fi
26-
if test -z $with_qt_bindir && test -z "@no_qt@"; then
27-
with_qt_bindir=$depends_prefix/native/bin
26+
if test -z "$with_qt_bindir" && test -z "@no_qt@"; then
27+
with_qt_bindir="${depends_prefix}/native/bin"
2828
fi
29-
if test -z $with_mpgen && test -n "@multiprocess@"; then
30-
with_mpgen=$depends_prefix/native
29+
if test -z "$with_mpgen" && test -n "@multiprocess@"; then
30+
with_mpgen="${depends_prefix}/native"
3131
fi
3232

33-
if test -z $with_qrencode && test -n "@no_qr@"; then
33+
if test -z "$with_qrencode" && test -n "@no_qr@"; then
3434
with_qrencode=no
3535
fi
3636

37-
if test -z $enable_wallet && test -n "@no_wallet@"; then
37+
if test -z "$enable_wallet" && test -n "@no_wallet@"; then
3838
enable_wallet=no
3939
fi
4040

41-
if test -z $enable_multiprocess && test -n "@multiprocess@"; then
41+
if test -z "$enable_multiprocess" && test -n "@multiprocess@"; then
4242
enable_multiprocess=yes
4343
fi
4444

45-
if test -z $with_miniupnpc && test -n "@no_upnp@"; then
45+
if test -z "$with_miniupnpc" && test -n "@no_upnp@"; then
4646
with_miniupnpc=no
4747
fi
4848

49-
if test -z $with_natpmp && test -n "@no_natpmp@"; then
49+
if test -z "$with_natpmp" && test -n "@no_natpmp@"; then
5050
with_natpmp=no
5151
fi
5252

53-
if test -z $with_gui && test -n "@no_qt@"; then
53+
if test -z "$with_gui" && test -n "@no_qt@"; then
5454
with_gui=no
5555
fi
5656

57-
if test -z $enable_zmq && test -n "@no_zmq@"; then
57+
if test -z "$enable_zmq" && test -n "@no_zmq@"; then
5858
enable_zmq=no
5959
fi
6060

61-
if test x@host_os@ = xdarwin; then
61+
if test "x@host_os@" = xdarwin; then
6262
BREW=no
6363
PORT=no
6464
fi
6565

66-
PATH=$depends_prefix/native/bin:$PATH
66+
PATH="${depends_prefix}/native/bin:${PATH}"
6767
PKG_CONFIG="$(which pkg-config) --static"
6868

6969
# These two need to remain exported because pkg-config does not see them
7070
# otherwise. That means they must be unexported at the end of configure.ac to
7171
# avoid ruining the cache. Sigh.
72-
export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig:$depends_prefix/lib/pkgconfig
72+
export PKG_CONFIG_PATH="${depends_prefix}/share/pkgconfig:${depends_prefix}/lib/pkgconfig"
7373
if test -z "@allow_host_packages@"; then
74-
export PKG_CONFIG_LIBDIR=$depends_prefix/lib/pkgconfig
74+
export PKG_CONFIG_LIBDIR="${depends_prefix}/lib/pkgconfig"
7575
fi
7676

77-
CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS"
78-
LDFLAGS="-L$depends_prefix/lib $LDFLAGS"
77+
CPPFLAGS="-I${depends_prefix}/include/ ${CPPFLAGS}"
78+
LDFLAGS="-L${depends_prefix}/lib ${LDFLAGS}"
7979

8080
if test -n "@CC@" -a -z "${CC}"; then
8181
CC="@CC@"
@@ -86,33 +86,33 @@ fi
8686
PYTHONPATH="${depends_prefix}/native/lib/python3/dist-packages${PYTHONPATH:+${PATH_SEPARATOR}}${PYTHONPATH}"
8787

8888
if test -n "@AR@"; then
89-
AR=@AR@
90-
ac_cv_path_ac_pt_AR=${AR}
89+
AR="@AR@"
90+
ac_cv_path_ac_pt_AR="${AR}"
9191
fi
9292

9393
if test -n "@RANLIB@"; then
94-
RANLIB=@RANLIB@
95-
ac_cv_path_ac_pt_RANLIB=${RANLIB}
94+
RANLIB="@RANLIB@"
95+
ac_cv_path_ac_pt_RANLIB="${RANLIB}"
9696
fi
9797

9898
if test -n "@NM@"; then
99-
NM=@NM@
100-
ac_cv_path_ac_pt_NM=${NM}
99+
NM="@NM@"
100+
ac_cv_path_ac_pt_NM="${NM}"
101101
fi
102102

103103
if test -n "@debug@"; then
104104
enable_reduce_exports=no
105105
fi
106106

107107
if test -n "@CFLAGS@"; then
108-
CFLAGS="@CFLAGS@ $CFLAGS"
108+
CFLAGS="@CFLAGS@ ${CFLAGS}"
109109
fi
110110
if test -n "@CXXFLAGS@"; then
111-
CXXFLAGS="@CXXFLAGS@ $CXXFLAGS"
111+
CXXFLAGS="@CXXFLAGS@ ${CXXFLAGS}"
112112
fi
113113
if test -n "@CPPFLAGS@"; then
114-
CPPFLAGS="@CPPFLAGS@ $CPPFLAGS"
114+
CPPFLAGS="@CPPFLAGS@ ${CPPFLAGS}"
115115
fi
116116
if test -n "@LDFLAGS@"; then
117-
LDFLAGS="@LDFLAGS@ $LDFLAGS"
117+
LDFLAGS="@LDFLAGS@ ${LDFLAGS}"
118118
fi

0 commit comments

Comments
 (0)