aboutsummaryrefslogtreecommitdiff
path: root/libexec/recit-setup
blob: d3da34ce3e50cbe3baeea52dd81d1866dfae8599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

source lib/recfile_template

if [[ -f "$HOME/.recit.location" ]]; then
    recfile_location=$(cat "$HOME/.recit.location") 
    echo "looks like you already have recit set up at ${recfile_location}, aborting..."
    exit 1
fi

recfile_template > "$HOME/.recit.db"
echo "$HOME/.recit.db" > "$HOME/.recit.location"