wip
This commit is contained in:
parent
f4b17c328b
commit
586695bc31
1 changed files with 20 additions and 1 deletions
19
blackarch.sh
19
blackarch.sh
|
@ -50,6 +50,23 @@
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check-blackarch() {
|
||||||
|
spin "Checking for blackarch existence.."
|
||||||
|
|
||||||
|
local refresh="$(${_sudo} pacman -Syy)"
|
||||||
|
|
||||||
|
if grep -qi "blackarch" <<<"$refresh"; then
|
||||||
|
upclear
|
||||||
|
throw "You already have blackarch-repos on your system!"
|
||||||
|
pen bold red "Exiting now!"
|
||||||
|
exit 69
|
||||||
|
else
|
||||||
|
upclear
|
||||||
|
check "Found no blackarch repos.."
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
setup-blackarch() {
|
setup-blackarch() {
|
||||||
local tmpfile out err
|
local tmpfile out err
|
||||||
local baURL=https://blackarch.org/strap.sh
|
local baURL=https://blackarch.org/strap.sh
|
||||||
|
@ -96,7 +113,9 @@
|
||||||
pkg-install curl
|
pkg-install curl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if check-blackarch; then
|
||||||
setup-blackarch && post-setup
|
setup-blackarch && post-setup
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if setup-env; then
|
if setup-env; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue