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"
|
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
|
||||||
|
@ -70,10 +70,10 @@ case $OS in
|
||||||
Linux)
|
Linux)
|
||||||
OS='linux'
|
OS='linux'
|
||||||
# Define values specifically for this platform/OS.
|
# Define values specifically for this platform/OS.
|
||||||
# Notice, this is different from the original.
|
# Notice, this is different from the original.
|
||||||
# Original used "/usr/bin" and "/usr/local/share/man" when I believe it should be either
|
# 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.
|
# /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.
|
# Which is why I prefer this approach, define variable, *once* then use it when needed.
|
||||||
binTgtDir=/usr/bin
|
binTgtDir=/usr/bin
|
||||||
man1TgtDir=/usr/share/man/man1
|
man1TgtDir=/usr/share/man/man1
|
||||||
;;
|
;;
|
||||||
|
@ -85,7 +85,7 @@ case $OS in
|
||||||
;;
|
;;
|
||||||
OpenBSD)
|
OpenBSD)
|
||||||
OS='openbsd'
|
OS='openbsd'
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
OS='osx'
|
OS='osx'
|
||||||
binTgtDir=/usr/local/bin
|
binTgtDir=/usr/local/bin
|
||||||
|
@ -154,27 +154,27 @@ cd $unzip_dir/*
|
||||||
|
|
||||||
case "$OS" in
|
case "$OS" in
|
||||||
'linux')
|
'linux')
|
||||||
# - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - -
|
||||||
#binary
|
#binary
|
||||||
sudo -v
|
sudo -v
|
||||||
sudo -s <<-EOT
|
sudo -s <<-EOT
|
||||||
cp rclone ${binTgtDir}/rclone.new
|
cp rclone ${binTgtDir}/rclone.new
|
||||||
chmod 755 ${binTgtDir}/rclone.new
|
chmod 755 ${binTgtDir}/rclone.new
|
||||||
chown root:root ${binTgtDir}/rclone.new
|
chown root:root ${binTgtDir}/rclone.new
|
||||||
mv ${binTgtDir}/rclone.new ${binTgtDir}/rclone
|
mv ${binTgtDir}/rclone.new ${binTgtDir}/rclone
|
||||||
EOT
|
EOT
|
||||||
# - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - -
|
||||||
#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
|
||||||
sudo -v
|
sudo -v
|
||||||
sudo -s <<-EOT
|
sudo -s <<-EOT
|
||||||
mkdir -p ${man1TgtDir}/man1
|
mkdir -p ${man1TgtDir}/man1
|
||||||
cp rclone.1 ${man1TgtDir}/man1/
|
cp rclone.1 ${man1TgtDir}/man1/
|
||||||
mandb
|
mandb
|
||||||
EOT
|
EOT
|
||||||
# - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - -
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
'freebsd'|'openbsd'|'netbsd')
|
'freebsd'|'openbsd'|'netbsd')
|
||||||
|
@ -195,7 +195,7 @@ case "$OS" in
|
||||||
chmod a=x ${binTgtDir}/rclone
|
chmod a=x ${binTgtDir}/rclone
|
||||||
#manual
|
#manual
|
||||||
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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Add table
Reference in a new issue