From a3d430789248959cbac09785a50ca1e0ca5a26ec Mon Sep 17 00:00:00 2001 From: Michael C Tiernan - MIT-Research Computing Project Date: Thu, 5 May 2022 12:50:22 -0400 Subject: [PATCH] install: set the modes on the files and/or directories on macOS Changes made for macOS specific for that style of system. Paths are established/defined singularly and modes are set automatically when created. (Platform specific.) --- docs/content/install.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/content/install.sh b/docs/content/install.sh index 3294c1563..1b854535a 100755 --- a/docs/content/install.sh +++ b/docs/content/install.sh @@ -81,6 +81,8 @@ case $OS in ;; Darwin) OS='osx' + binTgtDir=/usr/local/bin + man1TgtDir=/usr/local/share/man/man1 ;; SunOS) OS='solaris' @@ -171,12 +173,14 @@ case "$OS" in ;; 'osx') #binary - mkdir -p /usr/local/bin - cp rclone /usr/local/bin/rclone.new - mv /usr/local/bin/rclone.new /usr/local/bin/rclone + mkdir -m 0555 -p ${binTgtDir} + cp rclone ${binTgtDir}/rclone.new + mv ${binTgtDir}/rclone.new ${binTgtDir}/rclone + chmod a=x ${binTgtDir}/rclone #manual - mkdir -p /usr/local/share/man/man1 - cp rclone.1 /usr/local/share/man/man1/ + mkdir -m 0555 -p ${man1TgtDir} + cp rclone.1 ${man1TgtDir} + chmod a=r ${man1TgtDir}/rclone.1 ;; *) echo 'OS not supported'