diff -uNr hollywood-1.20/lib/hollywood/man hollywood-1.20.mod/lib/hollywood/man --- hollywood-1.20/lib/hollywood/man 2019-06-12 07:07:01.000000000 +0300 +++ hollywood-1.20.mod/lib/hollywood/man 2020-01-02 15:05:56.654764283 +0200 @@ -15,13 +15,21 @@ # limitations under the License. command -v man >/dev/null 2>&1 || exit 1 -command -v ccze >/dev/null 2>&1 || exit 1 + +_HAS_CCZE=false +if command -v ccze >/dev/null 2>&1; then + _HAS_CCZE=true +fi trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" INT while true; do - FILES=$(ls /usr/share/man/man1/ | sort -R | sed "s/\.1\.gz.*$//" | head -n 4096) + FILES=$(ls @TERMUX_PREFIX@/share/man/man1/ | sort -R | sed "s/\.1\.gz.*$//" | head -n 4096) for f in $FILES; do - man "$f" | ccze -A + if ${_HAS_CCZE}; then + man "$f" | ccze -A + else + man "$f" + fi sleep 0.2 done done