Adds bootstrap.v2

This commit is contained in:
Michel Fedde 2025-04-21 22:19:46 +02:00
parent 06c8003cf2
commit 2bbccb4595
61 changed files with 468 additions and 4 deletions

View file

@ -0,0 +1,29 @@
#!/bin/env sh
installPackages() {
packages=$@
if command -v yay >/dev/null; then
echo " using yay"
yay -S --needed $packages
elif command -v apt >/dev/null; then
echo " using apt"
apt install $packages
else
echo "... no supported package manager found. exiting"
exit 1
fi
}
updateSystem() {
if command -v yay >/dev/null; then
echo " using yay"
yay
elif command -v apt >/dev/null; then
echo " using apt"
apt update
else
echo "... no supported package manager found. exiting"
exit 1
fi
}