Skip to content

Commit ec740d6

Browse files
committed
Fix uploadCookbook equality test
The == operator is supported only when using double square brackets. Signed-off-by: Enrico Usai <usai@amazon.com>
1 parent 246685b commit ec740d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/uploadCookbook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ main() {
9898
aws ${_profile} --region "${_region}" s3 cp --acl public-read aws-parallelcluster-cookbook-${_version}.tgz.date s3://${_bucket}/cookbooks/aws-parallelcluster-cookbook-${_version}.tgz.date || _error_exit 'Failed to push cookbook date'
9999

100100
_bucket_region=$(aws ${_profile} s3api get-bucket-location --bucket ${_bucket} --output text)
101-
if [ ${_bucket_region} == "None" ]; then
101+
if [ ${_bucket_region} = "None" ]; then
102102
_bucket_region=""
103103
else
104104
_bucket_region=".${_bucket_region}"

0 commit comments

Comments
 (0)