From d560313af2276fb3d636242862d73e6460f11662 Mon Sep 17 00:00:00 2001 From: Michael C Tiernan - MIT-Research Computing Project Date: Sun, 15 May 2022 15:26:44 -0400 Subject: [PATCH] Formatting adjustments. --- docs/content/install.sh | 44 ++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/docs/content/install.sh b/docs/content/install.sh index 7bbd20cea..80d72aaf5 100755 --- a/docs/content/install.sh +++ b/docs/content/install.sh @@ -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 ;; *)