Files
Job79andClaude Opus 5.5 4d657656cd refactor(devc): harden entry script
- Resolve config.sh relative to the real script path (works via symlink).
- Don't silently swallow errors from config.sh.
- Default DEVC_REGISTRY to git.plabble.org/job79.
- Add -no-pull to start without contacting the registry.
- Host wrappers explain how to enable host-spawn instead of failing
  obscurely.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:46:59 +01:00

8 lines
286 B
Bash
Executable File

#!/bin/bash
export DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/bus"
[[ -S /tmp/bus ]] || { echo "host-spawn unavailable: restart with 'devc -host-spawn'" >&2; exit 1; }
cmd="${0##*/}"
[[ "$cmd" == "host" ]] && unset cmd
exec host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" ${cmd:+"$cmd"} "$@"