Skip to content

Commit 05df8f6

Browse files
authored
Update awsconfiguration.sh
1 parent 4f3d41a commit 05df8f6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

awsconfiguration.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,11 @@ echo "export AWS_SECRET_ACCESS_KEY=\"$AWS_SECRET_ACCESS_KEY\"">>awsenvconf
3737
echo "export AWS_ENVIRONMENT=\"$AWS_ENVIRONMENT\"">>awsenvconf
3838
echo "export AWS_SESSION_TOKEN=\"$AWS_SESSION_TOKEN\"">>awsenvconf
3939
echo "export AWS_ACCOUNT_ID=\"$AWS_ACCOUNT_ID\"">>awsenvconf
40-
echo awsenvconf >>.dockerignore
40+
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
4147

0 commit comments

Comments
 (0)