ampinzonv / BB2

BioBash UN official repository
Other
3 stars 1 forks source link

Unary operator expected During (Un)installation #11

Open ampinzonv opened 11 months ago

ampinzonv commented 11 months ago

CONTEXT BB has the utility bb_uninstall_biobash, the first screen warns the user about the following:

_Your .bashrc file will be also edited and all variables that were appended to it during BioBash installation will be erased. This is a safe procedure and your bashrc file will still hold all other configurations.

Proceed? [y/n]:_

PROBLEM _If one just hit enter (not answering y or n) the following error appears : /Users/andres/bin/biobash-0.2.0/bb_uninstall_biobash: line 49: [: ==: unary operator expected /Users/andres/bin/biobash-0.2.0/bb_uninstallbiobash: line 49: [: ==: unary operator expected Proceed? [y/n]:

POSSIBLE SOLUTION Not sure...

koriege commented 1 month ago

you have to quote $continue when testing a variable that could be empty