From 296e4936a0abff5ed0a01d641a59edaa09e605d7 Mon Sep 17 00:00:00 2001 From: didil <1284255+didil@users.noreply.github.com> Date: Sun, 12 May 2019 11:44:51 +0000 Subject: [PATCH] install: linux skip man pages if no mandb - fixes #3175 --- docs/content/install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/content/install.sh b/docs/content/install.sh index 60714ab25..27e501866 100755 --- a/docs/content/install.sh +++ b/docs/content/install.sh @@ -152,9 +152,13 @@ case $OS in chown root:root /usr/bin/rclone.new mv /usr/bin/rclone.new /usr/bin/rclone #manuals - mkdir -p /usr/local/share/man/man1 - cp rclone.1 /usr/local/share/man/man1/ - mandb + if ! [ -x "$(command -v mandb)" ]; then + echo 'mandb not found. The rclone man docs will not be installed.' + else + mkdir -p /usr/local/share/man/man1 + cp rclone.1 /usr/local/share/man/man1/ + mandb + fi ;; 'freebsd'|'openbsd'|'netbsd') #bin