Formatting adjustments.
This commit is contained in:
parent
074ab9c989
commit
d560313af2
1 changed files with 22 additions and 22 deletions
|
@ -37,7 +37,7 @@ for tool in ${unzip_tools_list[*]}; do
|
|||
unzip_tool="$tool"
|
||||
break
|
||||
fi
|
||||
done
|
||||
done
|
||||
set -e
|
||||
|
||||
# exit if no unzip tools available
|
||||
|
@ -70,10 +70,10 @@ case $OS in
|
|||
Linux)
|
||||
OS='linux'
|
||||
# Define values specifically for this platform/OS.
|
||||
# Notice, this is different from the original.
|
||||
# Original used "/usr/bin" and "/usr/local/share/man" when I believe it should be either
|
||||
# /usr/ or /usr/local/ for both. This note is my reminder to discuss it before committing it.
|
||||
# Which is why I prefer this approach, define variable, *once* then use it when needed.
|
||||
# Notice, this is different from the original.
|
||||
# Original used "/usr/bin" and "/usr/local/share/man" when I believe it should be either
|
||||
# /usr/ or /usr/local/ for both. This note is my reminder to discuss it before committing it.
|
||||
# Which is why I prefer this approach, define variable, *once* then use it when needed.
|
||||
binTgtDir=/usr/bin
|
||||
man1TgtDir=/usr/share/man/man1
|
||||
;;
|
||||
|
@ -85,7 +85,7 @@ case $OS in
|
|||
;;
|
||||
OpenBSD)
|
||||
OS='openbsd'
|
||||
;;
|
||||
;;
|
||||
Darwin)
|
||||
OS='osx'
|
||||
binTgtDir=/usr/local/bin
|
||||
|
@ -154,27 +154,27 @@ cd $unzip_dir/*
|
|||
|
||||
case "$OS" in
|
||||
'linux')
|
||||
# - - - - - - - - - - - - - - - - - - - -
|
||||
# - - - - - - - - - - - - - - - - - - - -
|
||||
#binary
|
||||
sudo -v
|
||||
sudo -s <<-EOT
|
||||
cp rclone ${binTgtDir}/rclone.new
|
||||
chmod 755 ${binTgtDir}/rclone.new
|
||||
chown root:root ${binTgtDir}/rclone.new
|
||||
mv ${binTgtDir}/rclone.new ${binTgtDir}/rclone
|
||||
EOT
|
||||
# - - - - - - - - - - - - - - - - - - - -
|
||||
sudo -v
|
||||
sudo -s <<-EOT
|
||||
cp rclone ${binTgtDir}/rclone.new
|
||||
chmod 755 ${binTgtDir}/rclone.new
|
||||
chown root:root ${binTgtDir}/rclone.new
|
||||
mv ${binTgtDir}/rclone.new ${binTgtDir}/rclone
|
||||
EOT
|
||||
# - - - - - - - - - - - - - - - - - - - -
|
||||
#manual
|
||||
if ! [ -x "$(command -v mandb)" ]; then
|
||||
echo 'mandb not found. The rclone man docs will not be installed.'
|
||||
else
|
||||
sudo -v
|
||||
sudo -s <<-EOT
|
||||
mkdir -p ${man1TgtDir}/man1
|
||||
cp rclone.1 ${man1TgtDir}/man1/
|
||||
sudo -v
|
||||
sudo -s <<-EOT
|
||||
mkdir -p ${man1TgtDir}/man1
|
||||
cp rclone.1 ${man1TgtDir}/man1/
|
||||
mandb
|
||||
EOT
|
||||
# - - - - - - - - - - - - - - - - - - - -
|
||||
EOT
|
||||
# - - - - - - - - - - - - - - - - - - - -
|
||||
fi
|
||||
;;
|
||||
'freebsd'|'openbsd'|'netbsd')
|
||||
|
@ -195,7 +195,7 @@ case "$OS" in
|
|||
chmod a=x ${binTgtDir}/rclone
|
||||
#manual
|
||||
mkdir -m 0555 -p ${man1TgtDir}
|
||||
cp rclone.1 ${man1TgtDir}
|
||||
cp rclone.1 ${man1TgtDir}
|
||||
chmod a=r ${man1TgtDir}/rclone.1
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Add table
Reference in a new issue