Skip to content

Instantly share code, notes, and snippets.

@skl
Last active March 5, 2020 12:12
Show Gist options
  • Save skl/9afd915860db5538f26e0995609dae63 to your computer and use it in GitHub Desktop.
Save skl/9afd915860db5538f26e0995609dae63 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
if [ "Darwin" != $(uname) ]; then
echo "This script is currently only compatible with macOS"
exit 1
fi
cd $HOME
curl https://gist.githubusercontent.com/skl/4dcf37c08a2c323c44e717840a8b4316/raw/226785983c0670e9bde5a7b5b311df04d57b6e2d/repair-sqlite-db.sh > repair-sqlite-db
chmod u+x repair-sqlite-db
mv -v repair-sqlite-db /usr/local/bin/repair-sqlite-db
/usr/local/bin/repair-sqlite-db
echo
echo "Install complete: repair-sqlite-db"
echo
echo "Please re-open Terminal to activate"
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment