File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ parameters:
1616 cache_control :
1717 description : Cache control header value
1818 type : string
19- default : ' max-age=31536000, public ' # 1 year
19+ default : ' '
2020steps :
2121 - run :
2222 name : << parameters.step_name >>
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33if (( CLEAN_DESTINATION )) ; then
4- if [ -n " $CACHE_CONTROL " ]; then
4+ if [[ -n " $CACHE_CONTROL " ] ]; then
55 aws s3 sync " $FROM " " $TO " --delete --cache-control " $CACHE_CONTROL "
66 else
77 aws s3 sync " $FROM " " $TO " --delete
88 fi
99else
10- if [ -n " $CACHE_CONTROL " ]; then
10+ if [[ -n " $CACHE_CONTROL " ] ]; then
1111 aws s3 sync " $FROM " " $TO " --cache-control " $CACHE_CONTROL "
1212 else
1313 aws s3 sync " $FROM " " $TO "
You can’t perform that action at this time.
0 commit comments