Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update quick-install.sh #215

Closed

Conversation

slycordinator
Copy link
Contributor

  • Made compatible with any posix shell
  • Moved command running into a run_cmd function
    • run_cmd will check the userid and if it's not 0/root, then it will run the command with sudo
    • This fixes the issue that the script previously would fail for a root user who doesn't have sudo installed and that it's simply
      unnecessary to run sudo for root user
  • Moved all commands out of the apt_fast_installation funtion as the function isn't really necessary.

Also, this removes the "sudo bash -c", which unnecessarily starts up another shell

* Made compatible with any posix shell
* Moved command running into a run_cmd function
* run_cmd will check the userid and if it's not 0/root, then it will run the command with sudo
* This fixes the issue that the script previously would fail for a root user who doesn't have sudo installed and that it's simply unnecessary to run sudo for root user
* Moved all commands out of the apt_fast_installation funtion as the function isn't really necessary.
Repository owner deleted a comment Feb 23, 2023
Repository owner locked as spam and limited conversation to collaborators Feb 23, 2023
@Lasall
Copy link
Collaborator

Lasall commented May 1, 2024

Thank you so much for your PR. I merged it with c2cd0a0

@Lasall Lasall closed this May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants