-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeemon-debug.sh
More file actions
executable file
·35 lines (30 loc) · 882 Bytes
/
deemon-debug.sh
File metadata and controls
executable file
·35 lines (30 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
#
# Debug wrapper to see what's happening
#
echo "=== DEBUG INFO ==="
echo "HOME: $HOME"
echo "USER: $USER"
echo "PATH: $PATH"
echo "Current dir: $(pwd)"
echo "Python: $(which python3)"
echo "Python version: $(python3 --version)"
echo ""
# Check if config exists
if [ -f "$HOME/.local/share/deemon/config.json" ]; then
echo "Config file EXISTS at: $HOME/.local/share/deemon/config.json"
echo "ARL in config: $(grep -o '"arl"[[:space:]]*:[[:space:]]*"[^"]*"' "$HOME/.local/share/deemon/config.json" | cut -d'"' -f4 | head -c 10)..."
else
echo "Config file NOT FOUND at: $HOME/.local/share/deemon/config.json"
fi
echo ""
# Set environment
export HOME="/Users/rd"
export PATH="$HOME/.local/bin:/usr/local/bin:$PATH"
cd /Users/rd/deemon
echo "After setting:"
echo "HOME: $HOME"
echo "Current dir: $(pwd)"
echo ""
# Run deemon
python3 -m deemon "$@"