From b759907b74c8029b228f0cc9b11e81edaa32150c Mon Sep 17 00:00:00 2001
From: Knut Ahlers <knut@ahlers.me>
Date: Thu, 27 Mar 2025 11:04:09 +0100
Subject: [PATCH] Increase number of hash characters

Signed-off-by: Knut Ahlers <knut@ahlers.me>
---
 bin/share     | 2 +-
 bin/shareperm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/share b/bin/share
index 3385978..3928c02 100755
--- a/bin/share
+++ b/bin/share
@@ -3,4 +3,4 @@ set -euo pipefail
 
 . <(vault2env --key=secret/minio/knut-cc --export)
 
-exec ~/gocode/bin/share --bucket=knut-cc --file-template="file/{{ printf \"%.8s\" .Hash}}/{{ .SafeFileName }}" --base-url="https://knut.cc/#" --progress "$@"
+exec ~/gocode/bin/share --bucket=knut-cc --file-template="file/{{ printf \"%.10s\" .Hash}}/{{ .SafeFileName }}" --base-url="https://knut.cc/#" --progress "$@"
diff --git a/bin/shareperm b/bin/shareperm
index f913b6b..df85640 100755
--- a/bin/shareperm
+++ b/bin/shareperm
@@ -3,4 +3,4 @@ set -euo pipefail
 
 . <(vault2env --key=secret/minio/knut-cc --export)
 
-exec ~/gocode/bin/share --bucket=knut-cc --file-template="permanent/{{ printf \"%.8s\" .Hash}}/{{ .SafeFileName }}" --base-url="https://knut.cc/#" --progress "$@"
+exec ~/gocode/bin/share --bucket=knut-cc --file-template="permanent/{{ printf \"%.10s\" .Hash}}/{{ .SafeFileName }}" --base-url="https://knut.cc/#" --progress "$@"