Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Added quotes around file path strings #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions aws/createResources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ createEBResources() {
verifyEBCLI

# Commit changes made
cd $ROOT_DIR
cd "$ROOT_DIR"
npm run-script build

# Create Elastic Beanstalk application
eb init $ROOT_NAME --region $REGION --platform $EB_PLATFORM
sleep 1

zip -r upload.zip . -x node_modules/\* *.git* *.idea* *.DS_Store*
cat <<EOT >> $ROOT_DIR/.elasticbeanstalk/config.yml
cat <<EOT >> "$ROOT_DIR/.elasticbeanstalk/config.yml"
deploy:
artifact: upload.zip
EOT
Expand All @@ -125,7 +125,7 @@ EOT
# Create Elastic Beanstalk environment
eb create $ROOT_NAME -d --region $REGION --platform $EB_PLATFORM --instance_type $EB_INSTANCE_TYPE

cd $CURR_DIR
cd "$CURR_DIR"
}

createS3Bucket() {
Expand Down Expand Up @@ -166,7 +166,7 @@ uploadS3Bucket() {
ng build $( if [ "$aws_cmd" == "awslocal" ]; then echo "--base-href /$BUCKET_NAME/"; fi )
cd -
echo "Syncing files to the S3 bucket from " $ROOT_DIR/dist/
$aws_cmd s3 sync $ROOT_DIR/dist/ s3://$BUCKET_NAME/ --region $REGION
$aws_cmd s3 sync "$ROOT_DIR/dist/" s3://$BUCKET_NAME/ --region $REGION
}

printConfig() {
Expand Down Expand Up @@ -219,7 +219,7 @@ export const environment = {
};

EOF
) > $ROOT_DIR/src/environments/environment.ts
) > "$ROOT_DIR/src/environments/environment.ts"

(
cat <<EOF
Expand All @@ -246,7 +246,7 @@ export const environment = {
};

EOF
) > $ROOT_DIR/src/environments/environment.prod.ts
) > "$ROOT_DIR/src/environments/environment.prod.ts"

}

Expand Down