Closed viferga closed 2 months ago
Hi, I am a contributor to OpenForce 2022. I would like to work on this issue
Done. @iamrahulmahato check it out: https://github.com/metacall/install/commit/ef9cf16fabec6149ba2c9be176589d0acce09fef
Whenever you want to contribute, do it directly, there's no need to ask unless the requirements or the tasks are not clear for you. If you want to work on it, just do it.
The code is full of branches depending on root permissions or not, in order to use sudo, like this:
This can be simplified if we test for root permissions at the beginning like this:
And the previous code would look like:
Also all
echo
s are unnecesary, we can just usetee
for both cases, we have just to update the dependencies.