mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
a11d55b726
fixed checkdb function always returning 2 instead of the count also add arc_dark_transparent_colors.rasi config file for use in meh.rasi
28 lines
548 B
Bash
Executable File
28 lines
548 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
|
|
log () {
|
|
printf "%s\n" "$1"
|
|
}
|
|
|
|
DIR="$HOME/.ani-cli/"
|
|
DB="history.sqlite3"
|
|
|
|
log "Deleting old directory..."
|
|
rm -rf "$DIR"
|
|
log "Directory deleted..."
|
|
|
|
log "Creating directory $DIR"
|
|
mkdir -p "$DIR"
|
|
log "Directory created"
|
|
|
|
log "Creating history database..."
|
|
sqlite3 "$DIR"/"$DB" < sql/watch_history_tbl.sql
|
|
sqlite3 "$DIR"/"$DB" < sql/search_history_tbl.sql
|
|
log "History database created..."
|
|
|
|
log "Moving theme files..."
|
|
cp themes/meh.rasi "$DIR"/
|
|
cp themes/arc_dark_transparent_colors.rasi "$DIR"/
|
|
log "Theme files moved..."
|