← back to AbramsEgo

scripts/clean-env.sh

9 lines

#!/bin/bash
# Remove the Spend->Reviews env lines from AbramsEgo — the feature moved to AbramsOS,
# so AbramsEgo should no longer be armed / hold George+openclaw config for it.
set -euo pipefail
cd ~/Projects/AbramsEgo
sed -i '' '/^SPEND_REVIEW_EXECUTORS_LIVE=/d; /^GEORGE_URL=/d; /^GEORGE_AUTH=/d; /^GEORGE_USER=/d; /^GEORGE_PASS=/d; /^OPENCLAW_BIN=/d' .env
pm2 restart abramsego >/dev/null 2>&1
echo "abramsego .env cleaned + restarted"