Skip to content

Commit a2d2919

Browse files
committedDec 26, 2015
Fixed list of files to upload for deploy.
1 parent 57e638d commit a2d2919

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎scripts/deploy.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,17 @@ function rbx_upload_files {
3535
src=$3
3636
path=${4:-}
3737
url=$(rbx_url_prefix "$bucket")
38-
file_exts=("" ".sha1" ".sha512")
38+
file_exts=("" ".sha512")
3939
index="index.txt"
4040

4141
rbx_s3_download "$url" "$index"
4242

4343
# Upload all the files first.
4444
for ext in "${file_exts[@]}"; do
45-
rbx_s3_upload "$url" "$bucket" "$dest$ext" "$src$ext" "$path" ||
46-
fail "unable to upload file"
45+
if [[ -f $src$ext ]]; then
46+
rbx_s3_upload "$url" "$bucket" "$dest$ext" "$src$ext" "$path" ||
47+
fail "unable to upload file"
48+
fi
4749
done
4850

4951
# Update the index and upload it.
@@ -54,7 +56,7 @@ function rbx_upload_files {
5456
name="$dest$ext"
5557
fi
5658

57-
grep "$name" "$index"
59+
grep "^$name\$" "$index"
5860
if [ $? -ne 0 ]; then
5961
echo "$name" >> "$index"
6062
fi

0 commit comments

Comments
 (0)