This commit is contained in:
pika 2025-06-16 19:05:43 +02:00
parent f4b17c328b
commit 586695bc31

View file

@ -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
setup-blackarch && post-setup if check-blackarch; then
setup-blackarch && post-setup
fi
} }
if setup-env; then if setup-env; then