cfg/bin/share
Knut Ahlers b744735c25
Restore pipe-sharing
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-15 13:23:20 +02:00

6 lines
249 B
Bash
Executable file

#!/usr/bin/env bash
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 "$@"