markziemann / dee2

Digital Expression Explorer 2 (DEE2): a repository of uniformly processed RNA-seq data
http://dee2.io
GNU General Public License v3.0
39 stars 7 forks source link

code/volunteer_pipeline.sh: line 17: [: ==: unary operator expected #85

Closed markziemann closed 2 years ago

markziemann commented 3 years ago

https://github.com/markziemann/dee2/blob/b3ffe35ee072fbf64b47de2d20d71e2587a5c042/pipeline/volunteer_pipeline.sh#L17

Solve it like this:

if [ "$LASTVAR" == "-V" ] ; then
  set -x
  VERBOSE=TRUE
  NUMVARS=$#
  NUMVARS=$((NUMVARS-1))
else
  alias wget='wget -q'
  alias curl='curl -s'
fi