Changed connectionLock from a stored property to a lazy property to avoid initialization timing issues in @MainActor classes. This prevents the crash that occurred when NSLock() was initialized during class instantiation.
20 lines
502 B
Bash
Executable File
20 lines
502 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Debug wrapper for Poltergeist
|
|
|
|
set -x # Enable debug output
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
PROJECT_DIR="$( cd "$SCRIPT_DIR/.." && pwd )"
|
|
|
|
echo "Script dir: $SCRIPT_DIR"
|
|
echo "Project dir: $PROJECT_DIR"
|
|
echo "Current dir: $(pwd)"
|
|
|
|
cd "$PROJECT_DIR"
|
|
|
|
echo "Changed to: $(pwd)"
|
|
echo "Config file exists: $(test -f poltergeist.config.json && echo YES || echo NO)"
|
|
echo "Running: node ../poltergeist/dist/cli.js $@"
|
|
|
|
exec node ../poltergeist/dist/cli.js "$@" |