fixed blesh
This commit is contained in:
parent
931f20c0b1
commit
42e2539be5
1 changed files with 8 additions and 2 deletions
10
.bashrc
10
.bashrc
|
@ -362,14 +362,16 @@ _defaults_() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# ─< ble.sh -- https://github.com/akinomyoga/ble.sh >─────────────────────────────────────
|
# ─< ble.sh -- https://github.com/akinomyoga/ble.sh >─────────────────────────────────────
|
||||||
i_blesh() {
|
d_blesh() {
|
||||||
for deeps in git make; do
|
for deeps in git make; do
|
||||||
if ! command_exists $deeps; then
|
if ! command_exists $deeps; then
|
||||||
echo_error "$deeps was missing from the system, cannot setup shell properly! (blesh setup)"
|
echo_error "$deeps was missing from the system, cannot setup shell properly! (blesh setup)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
i_blesh() {
|
||||||
local tmp_dir="$(mktemp -d)"
|
local tmp_dir="$(mktemp -d)"
|
||||||
|
|
||||||
cd "$tmp_dir" || echo_error "$tmp_dir is not valid!"
|
cd "$tmp_dir" || echo_error "$tmp_dir is not valid!"
|
||||||
|
@ -379,7 +381,11 @@ i_blesh() {
|
||||||
|
|
||||||
_blesh() {
|
_blesh() {
|
||||||
if [[ ! -f $HOME/.local/share/blesh/ble.sh ]]; then
|
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
|
else
|
||||||
# . "$HOME/.local/share/blesh/ble.sh" --attach=none
|
# . "$HOME/.local/share/blesh/ble.sh" --attach=none
|
||||||
. "$HOME/.local/share/blesh/ble.sh"
|
. "$HOME/.local/share/blesh/ble.sh"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue