AI Newsletter Digest improvements: fixed QP soft line break decoding, URL extraction, and content cleaning
This commit is contained in:
@@ -23,21 +23,29 @@ else
|
||||
cd "$REPO_DIR"
|
||||
fi
|
||||
|
||||
# Restore state directory
|
||||
if [ -d "$REPO_DIR/state" ]; then
|
||||
# Restore state directory (from openclaw-state/)
|
||||
if [ -d "$REPO_DIR/openclaw-state" ]; then
|
||||
echo "Restoring state directory..."
|
||||
rsync -av "$REPO_DIR/state/" "$STATE_DIR/"
|
||||
mkdir -p "$STATE_DIR/cron" "$STATE_DIR/devices"
|
||||
[ -f "$REPO_DIR/openclaw-state/openclaw.json" ] && cp "$REPO_DIR/openclaw-state/openclaw.json" "$STATE_DIR/"
|
||||
[ -f "$REPO_DIR/openclaw-state/cron/jobs.json" ] && cp "$REPO_DIR/openclaw-state/cron/jobs.json" "$STATE_DIR/cron/"
|
||||
[ -f "$REPO_DIR/openclaw-state/devices/paired.json" ] && cp "$REPO_DIR/openclaw-state/devices/paired.json" "$STATE_DIR/devices/"
|
||||
else
|
||||
echo "Warning: No state directory in backup"
|
||||
echo "Warning: No openclaw-state directory in backup"
|
||||
fi
|
||||
|
||||
# Restore workspace (optional - may not want to overwrite)
|
||||
# Restore workspace
|
||||
echo ""
|
||||
echo "Workspace restore is optional. Current workspace may have newer files."
|
||||
read -p "Restore workspace too? (y/N): " answer
|
||||
if [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
|
||||
echo "Restoring workspace..."
|
||||
rsync -av "$REPO_DIR/workspace/" "$WORKSPACE_DIR/"
|
||||
echo "Restoring workspace..."
|
||||
rsync -av --exclude='.git' "$REPO_DIR/" "$WORKSPACE_DIR/"
|
||||
|
||||
# Restore missing skills
|
||||
echo ""
|
||||
echo "Checking for missing skills..."
|
||||
if [ -f "$WORKSPACE_DIR/scripts/skill-tracker.sh" ]; then
|
||||
"$WORKSPACE_DIR/scripts/skill-tracker.sh" restore
|
||||
else
|
||||
echo "Warning: Skill tracker not found - skills may need manual reinstallation"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user