=First commit
This commit is contained in:
parent
14020e28d4
commit
7ce0f968e8
27 changed files with 476 additions and 0 deletions
26
_home/private_dot_config/sz.env/bbb_ble.sh.env
Normal file
26
_home/private_dot_config/sz.env/bbb_ble.sh.env
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
|
||||
|
||||
BASE_SHELL=${BASE_SHELL:-${SHELL##*/}}
|
||||
|
||||
if [[ "${BASE_SHELL}" == "bash" ]]; then
|
||||
update-ble.sh() {
|
||||
[[ -n "${DBG}" ]] && set -x
|
||||
local workdir="$SZ_ENV_ROOT/lib/ble.sh.curl"
|
||||
[ -d "$workdir" ] && rm -fR "$workdir"
|
||||
mkdir -p "$workdir"
|
||||
|
||||
cd "$workdir"
|
||||
curl -L https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz | tar xJf -
|
||||
|
||||
source "$workdir/ble-nightly/ble.sh"
|
||||
[[ -n "${DBG}" ]] && set +x
|
||||
}
|
||||
if [ -f "$SZ_ENV_ROOT/lib/ble.sh.curl/ble-nightly/ble.sh" ]; then
|
||||
source "$SZ_ENV_ROOT/lib/ble.sh.curl/ble-nightly/ble.sh" --noattach
|
||||
fi
|
||||
|
||||
if [[ -n "${DBG}" && -n "${BLE_VERSION-}" ]]; then
|
||||
echo "ble.sh will be loaded."
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue