summaryrefslogtreecommitdiff
path: root/archsetup.sh
diff options
context:
space:
mode:
authoradmin <contact@optics-design.com>2025-06-16 00:34:01 +0200
committeradmin <contact@optics-design.com>2025-06-16 00:34:01 +0200
commit3f136edc300503ce9638df3e895eb60511aa2c81 (patch)
treeb7cde8e63c76894fae3e4281a635e88f429cbc74 /archsetup.sh
parentca7aed664d9d6a06252cfad60d9032202cd9b8d3 (diff)
improved error handling and calling of the packages scriptHEADmaster
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