diff --git a/blackarch.sh b/blackarch.sh index 913fd59..29073f1 100644 --- a/blackarch.sh +++ b/blackarch.sh @@ -51,7 +51,7 @@ } setup-blackarch() { - local tmpfile + local tmpfile out err local baURL=https://blackarch.org/strap.sh tmpfile="$(mktemp)" @@ -59,14 +59,36 @@ if [ -n "$tmpfile" ]; then $_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 pen bold red "$tmpfile was empty.." fi } 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() {