Bad test in compile_MET_all.sh? #3340
Replies: 2 comments
|
You're right, it can never be false. Inside
if [[ -n "${MET_PYTHON}" && -x "${MET_PYTHON}/bin/python3" ]]; thenThe blast radius on this particular one is small, since the block only echoes and runs export MET_PYTHON_BIN_EXE=${MET_PYTHON_BIN_EXE:=${MET_PYTHON}/bin/python3}Same unchecked path, but taken as a default that gets used much later, so if it's wrong you find out a long way from the cause. |
|
Thank you, @maddenp-cu and @ChangkeunJ, for your feedback and suggestions. I have created an issue for this work: Improve validation and handling of MET_PYTHON and Python executable paths in compile_MET_all.sh #3341. Please feel free to post any comments on that issue with any further discussion. Thank you for your interest in METplus and for helping to improve our compilation tools. |
Uh oh!
There was an error while loading. Please reload this page.
Software Version
12.2.1
Text
Am I wrong in thinking that this test can never be false? Was maybe
intended?
All reactions