calcmem.sh: invalid use of [ -v
BBMap short read aligner, and other bioinformatic tools.
Brought to you by:
brian-jgi
In version 38.81 (maybe earlier, but also later versions), this error is generated:
calcmem.sh: line 75: [: -v: unary operator expected
The line in question is:
75 elif [ -v "$EC2_HOME" ]; then
This should be:
75 elif [ -v "EC2_HOME" ]; then
since the -v takes the name of the variable, not the value.
I'm having the same issue with currently latest version (38.90).