mirror of
https://github.com/bckelley/mybash.git
synced 2026-08-24 03:24:09 -05:00
delete check_root -> added to checkEnv
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user