delete check_root -> added to checkEnv

This commit is contained in:
2024-05-24 10:37:16 -05:00
parent 74119b533f
commit 5b553ba8fd
+2 -3
View File
@@ -9,14 +9,13 @@ command_exists() {
command -v "$1" >/dev/null 2>&1
}
check_root() {
checkEnv() {
if [ "$(id -u)" != "0" ]; then
echo -e "${RED}This script must be run as root.${RC}" 1>&2
exit 1
fi
}
checkEnv() {
## Check for requirements.
REQUIREMENTS='curl groups sudo'
for req in ${REQUIREMENTS}; do