You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
committed by
Timothy Gu
parent
164cd9b42a
commit
6d1801b5aa
4
configure
vendored
4
configure
vendored
@@ -622,12 +622,12 @@ enable_deep_weak(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
enabled(){
|
enabled(){
|
||||||
test "${1#!}" = "$1" && op== || op=!=
|
test "${1#!}" = "$1" && op='=' || op=!=
|
||||||
eval test "x\$${1#!}" $op "xyes"
|
eval test "x\$${1#!}" $op "xyes"
|
||||||
}
|
}
|
||||||
|
|
||||||
disabled(){
|
disabled(){
|
||||||
test "${1#!}" = "$1" && op== || op=!=
|
test "${1#!}" = "$1" && op='=' || op=!=
|
||||||
eval test "x\$${1#!}" $op "xno"
|
eval test "x\$${1#!}" $op "xno"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user