An always-on second brain you talk to. Voice notes in Telegram → typed, linked knowledge in your Obsidian vault. Runs 24/7 on the Claude subscription you already have.
Python ai-agentsai-automationclaudeclaude-codeebbinghausknowledge-graphllmmemory-systemobsidianpersonal-assistantpkmproductivitypythonsecond-braintelegram-botvoice-assistant
fix(scripts): robust .env loading via set -a
smixs2a28dfa7c26b
diff --git a/scripts/notify.sh b/scripts/notify.shindex 59a140c..e330637 100755--- a/scripts/notify.sh+++ b/scripts/notify.sh@@ -6,7 +6,12 @@ set -euo pipefailPROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"ENV_FILE="$PROJECT_DIR/.env"-[ -f "$ENV_FILE" ] && export $(grep -v '^#' "$ENV_FILE" | xargs) || true+if [ -f "$ENV_FILE" ]; then+ set -a+ # shellcheck disable=SC1090+ . "$ENV_FILE"+ set +a+fiMSG="${1:-d-brain alert}"CHAT_ID="${ALLOWED_USER_IDS//[\[\]]/}"diff --git a/scripts/process.sh b/scripts/process.shindex 9b7b48a..fae395c 100755--- a/scripts/process.sh+++ b/scripts/process.sh@@ -9,9 +9,13 @@ PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"VAULT_DIR="$PROJECT_DIR/vault"ENV_FILE="$PROJECT_DIR/.env"-# Load environment variables+# Load environment variables (set -a survives quoted values and spaces,+# unlike export $(... | xargs), which word-splits and strips quotes)if [ -f "$ENV_FILE" ]; then- export $(grep -v '^#' "$ENV_FILE" | xargs)+ set -a+ # shellcheck disable=SC1090+ . "$ENV_FILE"+ set +afi# Check token