mrlunchbox777 / basic-setup

basic box setup
MIT License
6 stars 3 forks source link

feature: Interactively Install bash/git in basic-setup.sh #128

Open mrlunchbox777 opened 4 months ago

mrlunchbox777 commented 4 months ago

Contact Details

mrlunchbox777@gmail.com

Feature Description

Rather than only hard failing if bash and/or git isn't installed, ask the user if they'd like to install them, and then attempt to install them or fail as it does now.

Why?

The goal of the project is to have a one command setup of desktop environment, and this helps facilitate that.

What-should happen?

When running the script if bash isn't installed it should ask if you want to install bash, and attempt to do so if you say yes. The same is true for git. When implementing other tools may need this treatment as well, e.g. curl.

Covers this TODO, and this TODO

Steps to Test

  1. Run the script command in an sh docker container
  2. It should ask you if you want to install bash, say yes
  3. It should install bash
  4. It should ask you if you want to install git, say yes
  5. It should install curl
  6. It should run the rest of the script
  7. Do 1-6 twice more answering (no) and (yes, no), in both cases it should hard fail after answering no (meaning you skip the rest of the steps)

Code of Conduct

mrlunchbox777 commented 4 months ago

consider this TODO as well.