Commit 6d1801b5 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Timothy Gu

configure: make assignment of variable to '=' explicit

op== is confusing, as it may easily be mistook for an equality check,
while in reality it is doing an assigment to '='.
This patch has the additional benefit of cleaning up 2 warnings from shellcheck.net.
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 164cd9b4
......@@ -622,12 +622,12 @@ enable_deep_weak(){
}
enabled(){
test "${1#!}" = "$1" && op== || op=!=
test "${1#!}" = "$1" && op='=' || op=!=
eval test "x\$${1#!}" $op "xyes"
}
disabled(){
test "${1#!}" = "$1" && op== || op=!=
test "${1#!}" = "$1" && op='=' || op=!=
eval test "x\$${1#!}" $op "xno"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment