fix(setup): move shim generation out of bashrc conditional block
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user