ampinzonv / BB2

BioBash UN official repository
Other
3 stars 1 forks source link

Installer late check of bashrc variables #1

Open ampinzonv opened 1 year ago

ampinzonv commented 1 year ago

CONTEXT During installation Biobash checks (in setup_environment) that the BIOBASH_HOME is not pre-existent in bashrc. This is a way of checking that we are not going to mess pre-existent variables in the bashrc file. so if it detects the BIOBASH_HOME variable in the .bashrc it stops the installation.

ISSUE The problem is that it performs that action after the user has answered a lot of questions and has been going far in installation. BB should check for this at the very beginning.

POSSIBLE SOLUTION Move the code in setup_environment (lines 56 to 77) to installbiobash line 49. It should work.and user experience will improve a lot.