testing..

This commit is contained in:
pika 2025-05-22 11:17:43 +02:00
parent 10bdef5d0e
commit 384406cfea

View file

@ -28,7 +28,6 @@
sleep 0.1 sleep 0.1
return 0 return 0
else else
echo_info "Sourcing external script:${NC} $url"
# ─< if $1 is a url, grab it and source it, also deletes afterwards >───────────────────── # ─< if $1 is a url, grab it and source it, also deletes afterwards >─────────────────────
if command_exists curl; then if command_exists curl; then
curl -fsSL $url -o $import curl -fsSL $url -o $import
@ -40,6 +39,7 @@
fi fi
source "$import" source "$import"
echo_info "Sourcing external script:${NC} $url"
sleep 0.1 sleep 0.1
rm -f "$import" rm -f "$import"
fi fi
@ -91,16 +91,16 @@
debian | ubuntu | arch | fedora | alpine | opensuse) debian | ubuntu | arch | fedora | alpine | opensuse)
for pkg in "${pkgArray[@]}"; do for pkg in "${pkgArray[@]}"; do
if ! command_exists $pkg; then if ! command_exists $pkg; then
spin red "Installing $pkg" spin yellow bold "Installing $(pen red $pkg)"
sleep 1 sleep 1
if run --err err _install $pkg; then if run --err err _install $pkg; then
check "Installed $pkg" check "$pkg $(pen green installed)!"
else else
throw "Something went wrong! Could not install $(pen bold red $pkg)" throw "Something went wrong! Could not install $(pen bold red $pkg)"
throw "${err:-}" throw "${err:-}"
fi fi
else else
pen green "$pkg already installed." pen "$pkg $(pen green already installed)"
fi fi
done done
;; ;;