valosekj / bash_basics

Bundle of bash, python and matlab scripts and functions used in routine work
MIT License
2 stars 0 forks source link

Error when separate_b0_and_dwi is called from CLI #3

Open valosekj opened 2 years ago

valosekj commented 2 years ago

Assume that only .nii file exists and .bval is missing, then I get following error:

$ source /usr/local/lib/bash_basics/bash_basic_functions.sh
$ separate_b0_and_dwi dMRI_AP.nii.gz
File dMRI_AP.bval does not exist.
/usr/local/lib/bash_basics/bash_basic_functions.sh: \u0159ádek 578: kill: 2449110#: argumenty musí být proces nebo identifikátor úlohy 
valosekj commented 2 years ago

The error is related to trap_exit function. Possible fix https://github.com/valosekj/bash_basics/commit/b6e9ab01f3d3ba3d05e8dfe6c25aa1f19713e378