A simple tool which lets you scrape twitter accounts and crosspost them to bluesky accounts! Comes with a CLI and a webapp for managing profiles! Works with images/videos/link embeds/threads.
···1010fi
11111212echo "⬇️ Pulling latest changes..."
1313-git pull
1414-1515-if [ $? -ne 0 ]; then
1616- echo "❌ Git pull failed. You might have local changes."
1717- echo " Try 'git stash' to save your changes, then run this script again."
1818- exit 1
1313+# Attempt to pull with autostash to handle local changes gracefully
1414+if ! git pull --autostash; then
1515+ echo "⚠️ Standard pull failed. Attempting to stash local changes and retry..."
1616+ git stash
1717+ if ! git pull; then
1818+ echo "❌ Git pull failed even after stashing. You might have complex local changes."
1919+ echo " Please check 'git status' and resolve conflicts manually."
2020+ exit 1
2121+ fi
1922fi
20232124echo "📦 Installing dependencies..."
···3538fi
36393740echo "✅ Update complete!"
3838-echo "⚠️ Please restart your application service now (e.g., 'pm2 restart tweets-2-bsky' or stop and start the node process)."
4141+echo "⚠️ Please restart your application service now (e.g., 'pm2 restart tweets-2-bsky' or stop and start the node process)."