aboutsummaryrefslogtreecommitdiff
path: root/depends/config.site.in
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-11-24 20:16:53 +0800
committerfanquake <fanquake@gmail.com>2021-12-03 21:03:35 +0800
commitd6d402bd2b8211e9e111acae433ca4e3cfd8d370 (patch)
treef4a09fba13530762b33e881536d5bf76f0885d5e /depends/config.site.in
parentc9b63ab61e4c0c94430064c9025c040f2abaeefc (diff)
downloadbitcoin-d6d402bd2b8211e9e111acae433ca4e3cfd8d370.tar.xz
build: remove x-prefix comparisons
Very old shells suffered from bugs which meant that prefixing variables with an "x" to ensure that the lefthand side of a comparison always started with an alphanumeric character was needed. Modern shells don't suffer from this issue (i.e Bash was fixed in 1996). In any case, we've already got unprefixed checks used in our codebase, i.e https://github.com/bitcoin/bitcoin/blob/master/configure.ac#L292, and have dependencies (in depends) that also use unprefixed comparisons. I think it's time that we can consolidate on not using the x-prefix workaround. At best it's mostly just confusing. More info: https://github.com/koalaman/shellcheck/wiki/SC2268 https://www.vidarholen.net/contents/blog/?p=1035
Diffstat (limited to 'depends/config.site.in')
-rw-r--r--depends/config.site.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/depends/config.site.in b/depends/config.site.in
index 87d0011b1c..ed1a1f8d3d 100644
--- a/depends/config.site.in
+++ b/depends/config.site.in
@@ -62,7 +62,7 @@ if test -z "$with_gui" && test -n "@no_qt@"; then
with_gui=no
fi
-if test -n "@debug@" && test -z "@no_qt@" && test "x$with_gui" != xno; then
+if test -n "@debug@" && test -z "@no_qt@" && test "$with_gui" != "no"; then
with_gui=qt5_debug
fi