mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
configure: fix defaults in help.
Both "[ 1 ]" and "[ 0 ]" both evaluate true in shell; we really want an explicit '1' test. Before: $ ./configure --help ... --enable/disable-compat (default disable) After: $ ./configure --help ... --enable/disable-compat (default enable) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
361ed8675a
commit
6a73c7eeb1
1 changed files with 3 additions and 3 deletions
6
configure
vendored
6
configure
vendored
|
@ -19,10 +19,10 @@ CONFIG_HEADER=ccan/config.h
|
||||||
usage_with_default()
|
usage_with_default()
|
||||||
{
|
{
|
||||||
if [ $# = 4 ]; then
|
if [ $# = 4 ]; then
|
||||||
if [ $2 ]; then
|
if [ "$2" = 1 ]; then
|
||||||
DEF=$4
|
|
||||||
else
|
|
||||||
DEF=$3
|
DEF=$3
|
||||||
|
else
|
||||||
|
DEF=$4
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
DEF=$2
|
DEF=$2
|
||||||
|
|
Loading…
Add table
Reference in a new issue