From e29ca044c0e421b38083ca90b1cabe54eecf8d1d Mon Sep 17 00:00:00 2001 From: JEEVITHA KANNAN K S Date: Thu, 31 Oct 2024 23:36:17 +0530 Subject: [PATCH] Fix bash deps (#763) --- core/tabs/applications-setup/mybash-setup.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core/tabs/applications-setup/mybash-setup.sh b/core/tabs/applications-setup/mybash-setup.sh index 7cda9942..c09df01e 100644 --- a/core/tabs/applications-setup/mybash-setup.sh +++ b/core/tabs/applications-setup/mybash-setup.sh @@ -5,16 +5,16 @@ gitpath="$HOME/.local/share/mybash" installDepend() { - if ! command_exists bash bash-completion tar bat tree unzip fontconfig git; then - printf "%b\n" "${YELLOW}Installing Bash...${RC}" - case "$PACKAGER" in - pacman) - "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm bash bash-completion tar bat tree unzip fontconfig git - ;; - *) - "$ESCALATION_TOOL" "$PACKAGER" install -y bash bash-completion tar bat tree unzip fontconfig git - ;; - esac + if [ ! -f "/usr/share/bash-completion/bash_completion" ] || ! command_exists bash tar bat tree unzip fc-list git; then + printf "%b\n" "${YELLOW}Installing Bash...${RC}" + case "$PACKAGER" in + pacman) + "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm bash bash-completion tar bat tree unzip fontconfig git + ;; + *) + "$ESCALATION_TOOL" "$PACKAGER" install -y bash bash-completion tar bat tree unzip fontconfig git + ;; + esac fi }