This commit is contained in:
pika 2025-06-16 15:55:44 +02:00
parent 37e3e896c6
commit ddb2864184

View file

@ -51,7 +51,7 @@
} }
setup-blackarch() { setup-blackarch() {
local tmpfile local tmpfile out err
local baURL=https://blackarch.org/strap.sh local baURL=https://blackarch.org/strap.sh
tmpfile="$(mktemp)" tmpfile="$(mktemp)"
@ -59,14 +59,36 @@
if [ -n "$tmpfile" ]; then if [ -n "$tmpfile" ]; then
$_sudo chmod +x $tmpfile $_sudo chmod +x $tmpfile
$_sudo $tmpfile
spin bold "Executing blackarch installation script.."
if run --err err --out out $_sudo $tmpfile; then
upclear
check bold green "Script executed sucessfully.."
else
upclear
throw bold red "There were errors.."
pen bold "${out:-}"
echo-error "${err:-}"
fi
else else
pen bold red "$tmpfile was empty.." pen bold red "$tmpfile was empty.."
fi fi
} }
post-setup() { post-setup() {
$_sudo pacman -Syyu local err out
pen red "Depending on your internetconnection, this might take a while.."
spin bold blue "Setting up repositories and refreshing sources.."
if run --err err --out out $_sudo pacman -Syyu; then
upclear
check bold green "Systemupdates finished, you should now have the blackarch repos installed!"
else
upclear
throw bold red "Systemupdates failed!"
pen bold "${out:-}"
echo-error "${err:-}"
fi
} }
main() { main() {