File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,17 @@ function rbx_upload_files {
35
35
src=$3
36
36
path=${4:- }
37
37
url=$( rbx_url_prefix " $bucket " )
38
- file_exts=(" " " .sha1 " " . sha512" )
38
+ file_exts=(" " " .sha512" )
39
39
index=" index.txt"
40
40
41
41
rbx_s3_download " $url " " $index "
42
42
43
43
# Upload all the files first.
44
44
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
47
49
done
48
50
49
51
# Update the index and upload it.
@@ -54,7 +56,7 @@ function rbx_upload_files {
54
56
name=" $dest$ext "
55
57
fi
56
58
57
- grep " $name " " $index "
59
+ grep " ^ $name \$ " " $index "
58
60
if [ $? -ne 0 ]; then
59
61
echo " $name " >> " $index "
60
62
fi
You can’t perform that action at this time.
0 commit comments