From f4d4dba4b39048a9e10d462dc54f8481daa98b07 Mon Sep 17 00:00:00 2001 From: Maddox Werts Date: Fri, 11 Apr 2025 09:42:52 -0400 Subject: [PATCH] Better organized code --- Installation/arch.sh | 40 +++++++++++++++++++++++----------------- README.md | 2 +- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/Installation/arch.sh b/Installation/arch.sh index e580f7f..39f01de 100644 --- a/Installation/arch.sh +++ b/Installation/arch.sh @@ -116,24 +116,30 @@ install_flat() { $FLH_INSTALL https://sober.vinegarhq.org/sober.flatpakref } -# Bloat Removal -if [ "$DESKTOP_SESSION" == "gnome" ]; then - gnome -fi +# Entry Point +main() { + ## Desktop Specific Operations ## + if [ "$DESKTOP_SESSION" == "gnome" ]; then + gnome + 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 diff --git a/README.md b/README.md index 268f9d9..3804137 100644 --- a/README.md +++ b/README.md @@ -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 ```