diff options
| -rwxr-xr-x | shell/ftag_tag_all.sh | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/shell/ftag_tag_all.sh b/shell/ftag_tag_all.sh index 10a0ebc..501b38a 100755 --- a/shell/ftag_tag_all.sh +++ b/shell/ftag_tag_all.sh @@ -4,17 +4,8 @@ # are. Performing the same action in a more elegant and flexible way will be # done in the future. -database='./ftag_cache/ftag.sqlite3' -ftag_bin='./ftag' - -# Use the development database by default, use the "real" one if any -# command-line argument is given -if [ $# -ge 1 ] -then - database="$HOME/.cache/ftag/ftag.sqlite3" - ftag_bin='ftag' -fi - +database="$HOME/.cache/ftag/ftag.sqlite3" +ftag_bin='ftag' files=$(sqlite3 -list "$database" 'SELECT canonical_name FROM files;') echo "Available tags" |
