testing..

This commit is contained in:
pika 2025-05-22 11:01:36 +02:00
parent 8f4f8b2e7c
commit c4002eff68

View file

@ -19,21 +19,30 @@
# This only wokrs for generic package names, like neovim, or vim, or tmux etc.. # This only wokrs for generic package names, like neovim, or vim, or tmux etc..
# not every package packagemanager has the same packagenames for their packages.. # not every package packagemanager has the same packagenames for their packages..
getImports() { getImports() {
i="https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh" local url="$1"
import="$(mktemp)" local import="$(mktemp)"
if command_exists curl; then
curl -fsSL $i -o $import # ─< if $1 is a local file, source this one instead >─────────────────────────────────────
if [ -f "$url" ]; then
source "$url"
sleep 0.1
return 0
else else
echo "curl is required, but missing.." echo_info "Sourcing external script:${NC} $url"
exit 1 # ─< if $1 is a url, grab it and source it, also deletes afterwards >─────────────────────
if command_exists curl; then
curl -fsSL $url -o $import
elif command_exists wget; then
wget -o $import $url
else
echo "curl/wget is required, but missing.."
exit 69
fi
source "$import"
sleep 0.1
rm -f "$import"
fi fi
source "$import"
sleep 0.3
rm "$import"
# echo_warning "cleaned $import"
source-script "https://git.k4li.de/pika/beddu/raw/branch/main/dist/beddu.sh"
} }
# command for executing silent mode only when nessessairy # command for executing silent mode only when nessessairy
@ -239,7 +248,7 @@
checkAndInitConfig </dev/tty checkAndInitConfig </dev/tty
} }
if getImports; then if getImports "https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh" && getImports "https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh"; then
# ─< package variable >─────────────────────────────────────────────────────────────────── # ─< package variable >───────────────────────────────────────────────────────────────────
unset PACKAGE unset PACKAGE