diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-09-13 02:26:04 -0400 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-09-15 14:58:48 -0700 |
commit | 6d1801b5aaf9b384e13adffff4ab5886dae65693 (patch) | |
tree | ec1cbd364188412d7603f719144fca695d28090c /configure | |
parent | 164cd9b42af7104edce84c6ba53d5c15fdd6d8d8 (diff) | |
download | ffmpeg-6d1801b5aaf9b384e13adffff4ab5886dae65693.tar.gz |
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>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" } |