summaryrefslogtreecommitdiff
path: root/archsetup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'archsetup.sh')
-rwxr-xr-xarchsetup.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/archsetup.sh b/archsetup.sh
index 958d50b..b6c9319 100755
--- a/archsetup.sh
+++ b/archsetup.sh
@@ -5,6 +5,8 @@
# Check for root privileges
[ "$(id -u)" -ne 0 ] && echo "This script must be run as root. Try using sudo." && exit 1
+SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
+
# Function for logging sections
log_section() {
echo "=============== $1 ==============="
@@ -35,14 +37,13 @@ if [ -f "/etc/wsl.conf" ]; then
fi
log_section "Basic Package Installation"
-./archpackages.sh
+$SCRIPT_DIR/archpackages.sh || handle_error "Package installation failed"
#Additional packages for WSL
if [ -f "/etc/wsl.conf" ]; then
pacman -S --noconfirm \
mesa vulkan-dzn
fi
pacman -Rns $(pacman -Qtdq) --noconfirm
-go telemetry off
systemctl start cronie
systemctl enable cronie
Back to https://optics-design.com