Better organized code

This commit is contained in:
Maddox Werts 2025-04-11 09:42:52 -04:00
parent a751f18f66
commit f4d4dba4b3
2 changed files with 24 additions and 18 deletions

View file

@ -116,24 +116,30 @@ install_flat() {
$FLH_INSTALL https://sober.vinegarhq.org/sober.flatpakref
}
# Bloat Removal
if [ "$DESKTOP_SESSION" == "gnome" ]; then
# Entry Point
main() {
## Desktop Specific Operations ##
if [ "$DESKTOP_SESSION" == "gnome" ]; then
gnome
fi
fi
# Installing Software
install_yay
install_pacman
install_aur
install_flat
# Installing Software
install_yay
install_pacman
install_aur
install_flat
# Enabling Daemons #
sudo systemctl enable --now libvirtd
sudo systemctl enable --now docker
# Enabling Daemons #
sudo systemctl enable --now libvirtd
sudo systemctl enable --now docker
# Cleaning Up #
sudo usermod -aG docker $USER
sudo usermod -aG libvirt $USER
# Applying Permissions #
sudo usermod -aG docker $USER
sudo usermod -aG libvirt $USER
# Finish Statement #
echo "Installation Done! Have Fun!"
# Finish Statement #
echo "Installation Done! Have Fun!"
}
# System Process
main

View file

@ -8,5 +8,5 @@ To use it, you can run any of the following:
### Arch Linux
```bash
curl path/to/arch.sh | sh
curl http://server.lan:3003/OBJNULL/LinuxScripts/raw/branch/main/Installation/arch.sh | sh
```