Empire/setup/reset.sh

23 lines
294 B
Bash
Executable File

#!/bin/bash
IFS='/' read -a array <<< pwd
if [[ "$(pwd)" != *setup ]]
then
cd ./setup
fi
# reset the database
rm ../data/empire.db
./setup_database.py
cd ..
# remove the debug file if it exists
rm empire.debug
# remove the download folders
rm -rf ./downloads/
# start up Empire
./empire