Skip to content

Commit 3bf6ea3

Browse files
committed
fix: remove temporary copilot directory after app deletion
1 parent e9874dd commit 3bf6ea3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/post_tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ jobs:
131131
if grep -Eq '(^| )copilot ' "${TMP_DIR}/run.sh" && ! command -v copilot &> /dev/null ; then
132132
echo "📦 *** Installing copilot"
133133
brew install copilot
134+
copilot --version
134135
fi
135136
136137
if grep -Eq '(^| )cilium ' "${TMP_DIR}/run.sh" && ! command -v cilium &> /dev/null ; then

_posts/2024/2024-05-09-exploit-vulnerability-wordpress-plugin-kali-linux-2.md

+3
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,9 @@ for FILE in ${TMP_DIR}/{vpc_cloudformation_template.yml,KaliLinux-NICE-DCV.yaml,
737737
done
738738
if copilot app ls | grep wordpress; then
739739
copilot app delete --name wordpress --yes
740+
if [[ -d "${TMP_DIR}/copilot" ]]; then
741+
rm -rf "${TMP_DIR}/copilot"
742+
fi
740743
fi
741744
if aws ssm get-parameter --name /copilot/wordpress/dev/secrets/WORDPRESS_USERNAME; then
742745
aws ssm delete-parameter --name /copilot/wordpress/dev/secrets/WORDPRESS_USERNAME

0 commit comments

Comments
 (0)