diff --git a/.editorconfig b/.editorconfig index c7a938d82..9ace96ac9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -56,3 +56,6 @@ max_line_length = 120 indent_style = tab indent_size = 4 tab_width = 4 + +[*.sh] +space_redirects = true diff --git a/samples/sample-ec2-java-app-codedeploy/scripts/start.sh b/samples/sample-ec2-java-app-codedeploy/scripts/start.sh index 34b0d4c56..649b805f9 100755 --- a/samples/sample-ec2-java-app-codedeploy/scripts/start.sh +++ b/samples/sample-ec2-java-app-codedeploy/scripts/start.sh @@ -2,4 +2,4 @@ cd /home/ec2-user/server sudo /usr/bin/java -jar -Dserver.port=80 \ - *.jar >/dev/null 2>/dev/null /dev/null 2> /dev/null < /dev/null & diff --git a/samples/sample-ec2-with-codedeploy/scripts/install-codedeploy.sh b/samples/sample-ec2-with-codedeploy/scripts/install-codedeploy.sh index 7afec4dbc..81127e951 100755 --- a/samples/sample-ec2-with-codedeploy/scripts/install-codedeploy.sh +++ b/samples/sample-ec2-with-codedeploy/scripts/install-codedeploy.sh @@ -4,7 +4,7 @@ set -xe ## Code Deploy Agent Bootstrap Script ## -exec > >(tee /var/log/user-data.log | logger -t user-data -s 2>/dev/console) 2>&1 +exec > >(tee /var/log/user-data.log | logger -t user-data -s 2> /dev/console) 2>&1 AUTOUPDATE=false function installdep() { diff --git a/samples/sample-ec2-with-codedeploy/scripts/install-deps.sh b/samples/sample-ec2-with-codedeploy/scripts/install-deps.sh index 1f12596f0..91858d13e 100755 --- a/samples/sample-ec2-with-codedeploy/scripts/install-deps.sh +++ b/samples/sample-ec2-with-codedeploy/scripts/install-deps.sh @@ -36,7 +36,7 @@ echo " ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ -" | sudo tee -a /etc/httpd/conf/httpd.conf >/dev/null +" | sudo tee -a /etc/httpd/conf/httpd.conf > /dev/null # start the httpd service now and stop it until userdata sudo service httpd start diff --git a/samples/sample-fargate-node-app/build/docker.sh b/samples/sample-fargate-node-app/build/docker.sh index 46948b66e..a79887076 100755 --- a/samples/sample-fargate-node-app/build/docker.sh +++ b/samples/sample-fargate-node-app/build/docker.sh @@ -12,4 +12,4 @@ docker push $REPOSITORY_URI:latest docker push $REPOSITORY_URI:$IMAGE_TAG tmp=$(mktemp) -jq --arg REPOSITORY_URI "$REPOSITORY_URI" --arg IMAGE_TAG "$IMAGE_TAG" '.Parameters.Image = $REPOSITORY_URI+":"+$IMAGE_TAG' params/global.json >"$tmp" && mv "$tmp" params/global.json +jq --arg REPOSITORY_URI "$REPOSITORY_URI" --arg IMAGE_TAG "$IMAGE_TAG" '.Parameters.Image = $REPOSITORY_URI+":"+$IMAGE_TAG' params/global.json > "$tmp" && mv "$tmp" params/global.json