Created
March 5, 2017 14:43
-
-
Save anonymous/13ea405e2d4bc214c959a51729c81f4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
DATABASE_LOCATION="$HOME/Library/Application Support/BathyScaphe/" | |
DB_NAME="BathyScaphe.db" | |
cd "$DATABASE_LOCATION" | |
echo '.dump' | sqlite3 "$DB_NAME" | sqlite3 repaired_"$DB_NAME" | |
mv -n "$DB_NAME" corrupt_"$DB_NAME" | |
mv -n repaired_"$DB_NAME" "$DB_NAME" | |
cd - > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment