mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-05 23:36:37 +00:00
14 lines
579 B
Bash
Executable file
14 lines
579 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# dev-launchd-wrapper.sh - Wrapper for running hot-dev-bg launchd-session
|
|
#
|
|
# launchd doesn't source login profiles, so PATH won't include go, npm,
|
|
# node, fswatch, etc. Hand off to an interactive login zsh so the user's
|
|
# normal shell environment is loaded before exec'ing the managed launchd
|
|
# supervisor path.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
export PULSE_DEV_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd -P)"
|
|
|
|
exec /bin/zsh -ilc 'cd "$PULSE_DEV_ROOT" && exec bash scripts/hot-dev-bg.sh launchd-session --takeover'
|