diff --git a/docs/changes/newsfragments/454.bugfix b/docs/changes/newsfragments/454.bugfix new file mode 100644 index 000000000..7774f9a89 --- /dev/null +++ b/docs/changes/newsfragments/454.bugfix @@ -0,0 +1 @@ +Fix FSL presence checking status code by `Fede Raimondo`_ diff --git a/junifer/pipeline/utils.py b/junifer/pipeline/utils.py index f8d66f90a..66dd433d7 100644 --- a/junifer/pipeline/utils.py +++ b/junifer/pipeline/utils.py @@ -155,7 +155,9 @@ def _check_fsl(commands: Optional[list[str]] = None) -> bool: shell=True, # is unsafe but kept for resolution via PATH check=False, ) - fsl_found = completed_process.returncode == 1 + fsl_found = ( + completed_process.returncode == 1 or completed_process.returncode == 0 + ) # Check for specific commands if fsl_found and commands is not None: