From 1c8b292b539813c1cdf59d42980931fc892c201b Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Tue, 5 Nov 2019 18:40:59 +0100 Subject: [PATCH] Add ebook-tools function Signed-off-by: Severin Kaderli --- system/.config/custom/aliases | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/system/.config/custom/aliases b/system/.config/custom/aliases index 05de2ed..5d7bea0 100644 --- a/system/.config/custom/aliases +++ b/system/.config/custom/aliases @@ -46,4 +46,13 @@ alias e='code' # Other aliases alias timestamp='date +%s' alias interfaces='ip -o link show | cut -d ":" -f 2' -alias ztar='tar --zstd -cf' \ No newline at end of file +alias ztar='tar --zstd -cf' + +function ebook-tools { + if [ -z "${1}" ]; then + echo "Please supply the book folder as argument." + return + fi + + docker run -it -v "${1}:/var/books" ebooktools/scripts:latest organize-ebooks.sh -v --output-folder="/var/books/organized" "/var/books" +} \ No newline at end of file