Skip to content

Commit 2099305

Browse files
committed
Update cortex-installer.sh
1 parent 217ddee commit 2099305

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cortex-installer.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function install_operator() {
167167

168168
prompt_for_telemetry
169169

170-
echo "Installing the Cortex operator ..."
170+
echo -e "\nInstalling the Cortex operator ..."
171171

172172
setup_namespace
173173
setup_configmap
@@ -252,29 +252,28 @@ function get_endpoints() {
252252
#################
253253

254254
function setup_bucket() {
255-
echo
256255
if ! aws s3api head-bucket --bucket $CORTEX_BUCKET --output json 2>/dev/null; then
257256
if aws s3 ls "s3://$CORTEX_BUCKET" --output json 2>&1 | grep -q 'NoSuchBucket'; then
258-
echo -e "Creating S3 bucket: $CORTEX_BUCKET\n"
257+
echo -e "\nCreating S3 bucket: $CORTEX_BUCKET"
259258
aws s3api create-bucket --bucket $CORTEX_BUCKET \
260259
--region $CORTEX_REGION \
261260
--create-bucket-configuration LocationConstraint=$CORTEX_REGION \
262261
>/dev/null
263262
else
264-
echo "A bucket named \"${CORTEX_BUCKET}\" already exists, but you do not have access to it"
263+
echo -e "\nA bucket named \"${CORTEX_BUCKET}\" already exists, but you do not have access to it"
265264
exit 1
266265
fi
267266
else
268-
echo -e "Using existing S3 bucket: $CORTEX_BUCKET\n"
267+
echo -e "\nUsing existing S3 bucket: $CORTEX_BUCKET"
269268
fi
270269
}
271270

272271
function setup_cloudwatch_logs() {
273272
if ! aws logs list-tags-log-group --log-group-name $CORTEX_LOG_GROUP --region $CORTEX_REGION --output json 2>&1 | grep -q "\"tags\":"; then
274-
echo -e "Creating CloudWatch log group: $CORTEX_LOG_GROUP\n"
273+
echo -e "\nCreating CloudWatch log group: $CORTEX_LOG_GROUP"
275274
aws logs create-log-group --log-group-name $CORTEX_LOG_GROUP --region $CORTEX_REGION
276275
else
277-
echo -e "Using existing CloudWatch log group: $CORTEX_LOG_GROUP\n"
276+
echo -e "\nUsing existing CloudWatch log group: $CORTEX_LOG_GROUP"
278277
fi
279278
}
280279

0 commit comments

Comments
 (0)