diff --git a/setup.sh b/setup.sh index 0684298..69730bf 100755 --- a/setup.sh +++ b/setup.sh @@ -21,25 +21,25 @@ fi printf "%s\n" "INSTALL DIR: $DIR" -if [[ "$DIR" == "$HOME/.config" ]]; then - # change so it prompts before deleting - printf "%s\n" "Maybe don't wanna delete that directory: $DIR" - exit 1 +# log "Deleting old directory..." +# rm -rf "$DIR" +# log "Directory deleted..." + +if [[ ! -d "$DIR" ]]; then + log "Creating directory $DIR" + mkdir -p "$DIR" + log "Directory created" fi -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"