From 5c50745957e7c977c9f3320cc07719c42c40a16b Mon Sep 17 00:00:00 2001
From: Recolic <git@me.recolic.net>
Date: Thu, 20 Mar 2025 01:12:17 -0700
Subject: [PATCH] .

---
 examples/archlinux-gnome/conf.d/basic.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/examples/archlinux-gnome/conf.d/basic.sh b/examples/archlinux-gnome/conf.d/basic.sh
index 63bed4d..211d855 100644
--- a/examples/archlinux-gnome/conf.d/basic.sh
+++ b/examples/archlinux-gnome/conf.d/basic.sh
@@ -29,8 +29,11 @@ lc_init () {
     echo 'rtest ALL=(ALL) NOPASSWD: ALL' | EDITOR='tee -a' visudo
     usermod --password $(echo testpass | openssl passwd -1 -stdin) rtest
 
-    sudo -u rtest realpath masterconf.sh || ! echo "ERROR: rtest do not have access to config dir." || exit 1
-    sudo -u rtest linuxconf register masterconf.sh
+    if ! sudo -u rtest realpath masterconf.sh; then
+        echo "ERROR: rtest do not have access to current dir... fix permission and manually register with 'sudo -u rtest'."
+    else
+        sudo -u rtest linuxconf register masterconf.sh
+    fi
 
     # more customization...
     grep kernel.sysrq=1 /etc/sysctl.d/99-sysctl.conf || echo 'kernel.sysrq=1' >> /etc/sysctl.d/99-sysctl.conf
-- 
GitLab