Skip to content

Commit

Permalink
fixed folder path
Browse files Browse the repository at this point in the history
  • Loading branch information
mloginov committed Jan 11, 2024
1 parent 229fbc9 commit badd5a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion uploadToS3.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
#!/bin/bash
set -xe

joinByChar() {
local IFS="$1"
shift
echo "$*"
}

s3Key=$1
s3Secret=$2
tag=$3
folder="guides\/parsons"
folderArr=("guides" "parsons")
folder=$(joinByChar "/", "${folderArr[@]}")
folderEscaped=$(joinByChar "\/", "${folderArr[@]}")
cdn="\/\/static-assets.codio.com\/${folder}\/${tag}"

echo "$cdn"

readarray -d '' files < <(find ./lib -type f -print0)

getContentType () {
Expand Down

0 comments on commit badd5a4

Please sign in to comment.