minor code changes to reduce deletions

This commit is contained in:
guruswarupa 2024-07-24 16:11:41 +05:30
parent 9daac8000c
commit b957976519
3 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,10 @@ command_exists() {
}
checkEnv() {
checkCommandRequirements 'curl groups sudo'
checkPackageManager 'apt-get dnf pacman zypper nix-env'
checkSuperUser
checkDistro
## Check for requirements.
REQUIREMENTS='curl groups sudo'
for req in ${REQUIREMENTS}; do

View File

@ -10,6 +10,10 @@ command_exists() {
}
checkEnv() {
checkCommandRequirements 'curl groups sudo'
checkPackageManager 'apt-get dnf pacman zypper nix-env'
checkSuperUser
checkDistro
## Check for requirements.
REQUIREMENTS='curl groups sudo'
for req in ${REQUIREMENTS}; do

View File

@ -10,6 +10,10 @@ command_exists() {
}
checkEnv() {
checkCommandRequirements 'curl groups sudo'
checkPackageManager 'apt-get dnf pacman zypper nix-env'
checkSuperUser
checkDistro
## Check for requirements.
REQUIREMENTS='curl groups sudo'
for req in $REQUIREMENTS; do