wip
This commit is contained in:
parent
37e3e896c6
commit
ddb2864184
1 changed files with 25 additions and 3 deletions
28
blackarch.sh
28
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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue