From b9579765197f537d945e5c163362eb62e5861d4b Mon Sep 17 00:00:00 2001 From: guruswarupa Date: Wed, 24 Jul 2024 16:11:41 +0530 Subject: [PATCH] minor code changes to reduce deletions --- src/commands/dotfiles/alacritty-setup.sh | 4 ++++ src/commands/dotfiles/kitty-setup.sh | 4 ++++ src/commands/dotfiles/rofi-setup.sh | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/commands/dotfiles/alacritty-setup.sh b/src/commands/dotfiles/alacritty-setup.sh index ca897362..310f99bb 100755 --- a/src/commands/dotfiles/alacritty-setup.sh +++ b/src/commands/dotfiles/alacritty-setup.sh @@ -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 diff --git a/src/commands/dotfiles/kitty-setup.sh b/src/commands/dotfiles/kitty-setup.sh index bef3692e..2f877e82 100755 --- a/src/commands/dotfiles/kitty-setup.sh +++ b/src/commands/dotfiles/kitty-setup.sh @@ -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 diff --git a/src/commands/dotfiles/rofi-setup.sh b/src/commands/dotfiles/rofi-setup.sh index 4d873f90..7d08507f 100755 --- a/src/commands/dotfiles/rofi-setup.sh +++ b/src/commands/dotfiles/rofi-setup.sh @@ -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