mirror of
https://github.com/rclone/rclone.git
synced 2025-01-11 16:58:24 +01:00
install: linux skip man pages if no mandb - fixes #3175
This commit is contained in:
parent
a0b9d4a239
commit
296e4936a0
@ -152,9 +152,13 @@ case $OS in
|
|||||||
chown root:root /usr/bin/rclone.new
|
chown root:root /usr/bin/rclone.new
|
||||||
mv /usr/bin/rclone.new /usr/bin/rclone
|
mv /usr/bin/rclone.new /usr/bin/rclone
|
||||||
#manuals
|
#manuals
|
||||||
mkdir -p /usr/local/share/man/man1
|
if ! [ -x "$(command -v mandb)" ]; then
|
||||||
cp rclone.1 /usr/local/share/man/man1/
|
echo 'mandb not found. The rclone man docs will not be installed.'
|
||||||
mandb
|
else
|
||||||
|
mkdir -p /usr/local/share/man/man1
|
||||||
|
cp rclone.1 /usr/local/share/man/man1/
|
||||||
|
mandb
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
'freebsd'|'openbsd'|'netbsd')
|
'freebsd'|'openbsd'|'netbsd')
|
||||||
#bin
|
#bin
|
||||||
|
Loading…
Reference in New Issue
Block a user