From 1e9e7ac557b2459a4c7f51489e511cde72f25cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=BCmel=20Branko?= Date: Sun, 28 Dec 2025 16:07:49 +0100 Subject: [PATCH] fix(setup): move shim generation out of bashrc conditional block --- native_crumbcore_v1/setup_missions.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/native_crumbcore_v1/setup_missions.sh b/native_crumbcore_v1/setup_missions.sh index acaeb3a..eb2ee1a 100755 --- a/native_crumbcore_v1/setup_missions.sh +++ b/native_crumbcore_v1/setup_missions.sh @@ -108,10 +108,10 @@ EOF fi # 4b. Setup Role Aliases (Separate check to ensure update on existing installs) -if ! grep -q "alias dumbo" "$HOME_DIR/.bashrc"; then - cat << 'EOF' >> "$HOME_DIR/.bashrc" +EOF +fi -# 🎭 Role Shims (Global Executables) +# 5. Role Shims (Global Executables) # We use /usr/local/bin so that scripts (which ignore aliases) can also call 'dumbo', 'templatus' etc. WRAPPER="/opt/crumbforest/native_crumbcore_v1/scripts/role_wrapper.sh" ROLES_DIR="/opt/crumbforest/app/crumbforest_roles" @@ -136,8 +136,8 @@ SHIM print_info "Created shim: $role_base -> $script" fi done -fi -EOF +else + print_info "No roles directory found at $ROLES_DIR. Skipping shim generation." fi # 5. Create Systemd Service