Add hash TODO

This commit is contained in:
Lukáš Kucharczyk 2022-11-11 13:20:24 +01:00
parent face6e04a6
commit abe44c3f92
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 2 additions and 0 deletions

2
tag.sh
View File

@ -36,6 +36,8 @@ if [[ "$1" = "add" ]]; then
shift
[ "$1" = "tag" ] && TABLE="tags" && COLUMN="label"
[ "$1" = "file" ] && TABLE="files" && COLUMN="filename"
# TODO: refactor the add function to allow adding hashes
# [ "$1" = "hash" ] && TABLE="hashes" && COLUMN="md5,filename"
shift
[ -z "$1" ] && fail "No value supplied."
COUNTER=0