There is currently a comment indicating a potential future implementation of a system to allow users on unsupported operating systems to continue without all necessary dependencies installed.
This patch implements that feature.
Signed-off-by: Amy Parker <apark0006@student.cerritos.edu>
The current setup of install.sh means that all the other commands will still run if any command fails. This creates a volatile and unsafe state should something go wrong, one which may cause recovering difficulties depending on the type of failure.
This patch fixes that problem by adding the "set -e" command to the beginning of the script. This command will cause the script to exit if a command fails.
Signed-off-by: Amy Parker <apark0006@student.cerritos.edu>
This script is based around having superuser permissions. The way it handles them is by using `sudo`. This has two main problems:
1. It could potentially require someone to input their password many, many times depending on their sudo configuration.
2. Even when running as root, the script will break for anyone without sudo installed.
The way to fix this is simple: require the script itself be run as root instead of using sudo.
This patch adds a check at the beginning which verifies if the user is root. If the user is not root, it explains what must be done to rectify the problem. It then also removes all usages of sudo throughout the script.
This also aligns the script with more typical scriptwriting conventions, overall improving the quality of the script.