From 42e2539be5b60ff0ad32fc53d675e2c67ff6d434 Mon Sep 17 00:00:00 2001 From: pika <67532734+pik4li@users.noreply.github.com> Date: Sun, 5 Jan 2025 20:54:42 +0100 Subject: [PATCH] fixed blesh --- .bashrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index ec74979..d13bda2 100644 --- a/.bashrc +++ b/.bashrc @@ -362,14 +362,16 @@ _defaults_() { } # ─< ble.sh -- https://github.com/akinomyoga/ble.sh >───────────────────────────────────── -i_blesh() { +d_blesh() { for deeps in git make; do if ! command_exists $deeps; then echo_error "$deeps was missing from the system, cannot setup shell properly! (blesh setup)" exit 1 fi done +} +i_blesh() { local tmp_dir="$(mktemp -d)" cd "$tmp_dir" || echo_error "$tmp_dir is not valid!" @@ -379,7 +381,11 @@ i_blesh() { _blesh() { if [[ ! -f $HOME/.local/share/blesh/ble.sh ]]; then - i_blesh + d_blesh # Dependency check for blesh + echo_info "Installing blesh.. Depending on your internet connection and the performance of the client, this could take a minute or two.." + if silentexec i_blesh; then # installing blesh silently + bash + fi else # . "$HOME/.local/share/blesh/ble.sh" --attach=none . "$HOME/.local/share/blesh/ble.sh"