Skip to content

Commit

Permalink
Add group write permissions in build-release.sh (#5157)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones authored Apr 19, 2021
1 parent a76253d commit 8f88236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ if [ $do_ftp -eq 1 ]; then # Place file in pwessel SOEST ftp release directory a
echo "build-release.sh: Placing gmt-${Version}-darwin-${type}.dmg on the ftp site" >&2
scp gmt-${Version}-darwin-${type}.dmg ${GMT_FTP_URL}:${GMT_FTP_DIR}
fi
ssh ${USER}@${GMT_FTP_URL} "chmod og+r ${GMT_FTP_DIR}/gmt-*"
ssh ${USER}@${GMT_FTP_URL} "chmod o+r,g+rw ${GMT_FTP_DIR}/gmt-*"
fi
if [ $do_ftp -eq 2 ]; then # Place M1 bundle file on ftp
type=$(uname -m)
if [ -f gmt-${Version}-darwin-${type}.dmg ]; then
echo "build-release.sh: Placing gmt-${Version}-darwin-${type}.dmg on the ftp site" >&2
scp gmt-${Version}-darwin-${type}.dmg ${GMT_FTP_URL}:${GMT_FTP_DIR}
fi
ssh ${USER}@${GMT_FTP_URL} "chmod og+r ${GMT_FTP_DIR}/gmt-*"
ssh ${USER}@${GMT_FTP_URL} "chmod o+r,g+rw ${GMT_FTP_DIR}/gmt-*"
fi

0 comments on commit 8f88236

Please sign in to comment.