#!/usr/bin/env bash [ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config" DIR="$XDG_CONFIG_HOME/aniwrapper" DB='history.sqlite3' log() { printf "%s\n" "$1" } while getopts 'cdrqC' OPT; do case "$OPT" in c) log "Creating database..." sqlite3 "$DIR"/"$DB"