na-- / ebook-tools

Shell scripts for organizing and managing ebook collections
GNU General Public License v3.0
721 stars 69 forks source link

Docker image doesn't have less installed #4

Closed heliostatic closed 6 years ago

heliostatic commented 6 years ago

Steps to repro: Use interactive-organizer.sh and select Read in terminal Expected: Able to read book in terminal Actual: Command fails because less is not installed

File    'Aesop - Aesop Fables (2016) [9789887739401,9781434001467].epub' (394.5KiB in '/unorganized-books/cleaned/uncertain/') [has metadata]
Old     'Aesop's Fables - Aesop.epub' (in '/unorganized-books/Fiction and Short Stories/1001 Books You Must Read Before You Die/Aesop/')
No missing words from the old filename in the new!
Possible actions:
 0/spb) Move file and metadata to '/unorganized-books/cleaned/'
 m/tab) Move to another folder          | i/bs)  Interactively reorganize the file
 o/ent) Open file in external viewer    | l)     Read in terminal
 c)     Read the saved metadata file    | ?)     Run ebook-meta on the file
 t/`)   Run shell in terminal           | e)     Eval code (change env vars)
 s)     Skip file                       | q/esc) Quit
Chosen option: l
Reading '/unorganized-books/cleaned/uncertain/Aesop - Aesop Fables (2016) [9789887739401,9781434001467].epub' (application/epub+zip) with less...
Converting ebook '/unorganized-books/cleaned/uncertain/Aesop - Aesop Fables (2016) [9789887739401,9781434001467].epub' to text format in file '/tmp/tmp.Fo8jJonmgK.txt'...
./interactive-organizer.sh: line 121: less: command not found
ERROR on line 121 ./interactive-organizer.sh!
ERROR on line 356 ./interactive-organizer.sh!
user@5e0343e69f50:/ebook-tools$ less
bash: less: command not found
na-- commented 6 years ago

Thank you for the bug report! It should be fixed in the latest docker image that will be automatically built in a few minutes.