Changed formatting and removed random whitespace.
This commit is contained in:
parent
2738602ba1
commit
dd0075735d
1 changed files with 19 additions and 19 deletions
|
@ -37,7 +37,7 @@ for tool in ${unzip_tools_list[*]}; do
|
||||||
unzip_tool="$tool"
|
unzip_tool="$tool"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# exit if no unzip tools available
|
# exit if no unzip tools available
|
||||||
|
@ -78,7 +78,7 @@ case $OS in
|
||||||
;;
|
;;
|
||||||
OpenBSD)
|
OpenBSD)
|
||||||
OS='openbsd'
|
OS='openbsd'
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
OS='osx'
|
OS='osx'
|
||||||
binTgtDir=/usr/local/bin
|
binTgtDir=/usr/local/bin
|
||||||
|
@ -155,7 +155,7 @@ case "$OS" in
|
||||||
#manual
|
#manual
|
||||||
if ! [ -x "$(command -v mandb)" ]; then
|
if ! [ -x "$(command -v mandb)" ]; then
|
||||||
echo 'mandb not found. The rclone man docs will not be installed.'
|
echo 'mandb not found. The rclone man docs will not be installed.'
|
||||||
else
|
else
|
||||||
mkdir -p /usr/local/share/man/man1
|
mkdir -p /usr/local/share/man/man1
|
||||||
cp rclone.1 /usr/local/share/man/man1/
|
cp rclone.1 /usr/local/share/man/man1/
|
||||||
mandb
|
mandb
|
||||||
|
@ -172,25 +172,25 @@ case "$OS" in
|
||||||
makewhatis
|
makewhatis
|
||||||
;;
|
;;
|
||||||
'osx')
|
'osx')
|
||||||
### - - - - - - - - - - - - - - - - - - - -
|
### - - - - - - - - - - - - - - - - - - - -
|
||||||
#binary
|
#binary
|
||||||
sudo -v
|
sudo -v
|
||||||
sudo -s -- <<-EOT
|
sudo -s -- <<-EOT
|
||||||
mkdir -m 0555 -p ${binTgtDir}
|
mkdir -m 0555 -p ${binTgtDir}
|
||||||
cp rclone ${binTgtDir}/rclone.new
|
cp rclone ${binTgtDir}/rclone.new
|
||||||
mv ${binTgtDir}/rclone.new ${binTgtDir}/rclone
|
mv ${binTgtDir}/rclone.new ${binTgtDir}/rclone
|
||||||
chmod a=x ${binTgtDir}/rclone
|
chmod a=x ${binTgtDir}/rclone
|
||||||
EOT
|
EOT
|
||||||
### - - - - - - - - - - - - - - - - - - - -
|
### - - - - - - - - - - - - - - - - - - - -
|
||||||
#manual
|
#manual
|
||||||
sudo -v
|
sudo -v
|
||||||
sudo -s -- <<-EOT
|
sudo -s -- <<-EOT
|
||||||
mkdir -m 0555 -p ${man1TgtDir}
|
mkdir -m 0555 -p ${man1TgtDir}
|
||||||
cp rclone.1 ${man1TgtDir}
|
cp rclone.1 ${man1TgtDir}
|
||||||
chmod a=r ${man1TgtDir}/rclone.1
|
chmod a=r ${man1TgtDir}/rclone.1
|
||||||
EOT
|
EOT
|
||||||
;;
|
;;
|
||||||
### - - - - - - - - - - - - - - - - - - - -
|
### - - - - - - - - - - - - - - - - - - - -
|
||||||
*)
|
*)
|
||||||
echo 'OS not supported'
|
echo 'OS not supported'
|
||||||
exit 2
|
exit 2
|
||||||
|
|
Loading…
Reference in a new issue