Changeset - 22a27b494f7e
0
1
0
Noticket: [factorio_manager.sh] Expand checks for bool/int values to achieve better correctness of the code:
A && B || C in Bash is not equivalent to:
if A; then
B
else
C
fi
In fact, if A is true, and B is false, C will still get run.
In this particular case it's not a problem, but better to get rid of
it and have slightly longer code.
A && B || C in Bash is not equivalent to:
if A; then
B
else
C
fi
In fact, if A is true, and B is false, C will still get run.
In this particular case it's not a problem, but better to get rid of
it and have slightly longer code.
1 file changed with 10 insertions and 2 deletions:
0 comments (0 inline, 0 general)
First comment
0 comments (0 inline, 0 general)
First comment