Skip to content

Commit 8cca180

Browse files
committed
Set permissions on upload dirs
1 parent 701edf5 commit 8cca180

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

installer-downloader/build.sh

+8-5
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,16 @@ function dist_windows_app {
325325
# - local file
326326
# - version
327327
function upload_sftp {
328-
echo "Uploading \"$1\" to app-build-linux:upload/installer-downloader/$2"
328+
local local_path=$1
329+
local version=$2
330+
echo "Uploading \"$local_path\" to app-build-linux:upload/installer-downloader/$version"
329331
sftp app-build-linux <<EOF
330-
mkdir upload
331332
mkdir upload/installer-downloader
332-
mkdir upload/installer-downloader/$2
333-
cd upload/installer-downloader/$2
334-
put "$1"
333+
mkdir upload/installer-downloader/$version
334+
chmod 770 upload/installer-downloader
335+
chmod 770 upload/installer-downloader/$version
336+
cd upload/installer-downloader/$version
337+
put "$local_path"
335338
bye
336339
EOF
337340
}

0 commit comments

Comments
 (0)