From abe44c3f92ef44fb982b4336aa0c156ccefed12c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Fri, 11 Nov 2022 13:20:24 +0100 Subject: [PATCH] Add hash TODO --- tag.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tag.sh b/tag.sh index 3150e98..85858c6 100755 --- a/tag.sh +++ b/tag.sh @@ -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