We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f3d41a commit 05df8f6Copy full SHA for 05df8f6
awsconfiguration.sh
@@ -37,5 +37,11 @@ echo "export AWS_SECRET_ACCESS_KEY=\"$AWS_SECRET_ACCESS_KEY\"">>awsenvconf
37
echo "export AWS_ENVIRONMENT=\"$AWS_ENVIRONMENT\"">>awsenvconf
38
echo "export AWS_SESSION_TOKEN=\"$AWS_SESSION_TOKEN\"">>awsenvconf
39
echo "export AWS_ACCOUNT_ID=\"$AWS_ACCOUNT_ID\"">>awsenvconf
40
-echo awsenvconf >>.dockerignore
+
41
+if grep -Fxq "awsenvconf" .dockerignore
42
+then
43
+ echo "awsenvconf exist in docker ignore file list"
44
+else
45
+ echo "awsenvconf" >> .dockerignore
46
+fi
47
0 commit comments