Skip to content

Commit 3540e6c

Browse files
committed
fix(cleanup): remove unnecessary cleanup
These lines don't actually do anything because there is no `{{workingDirectory}}` set here
1 parent d58732b commit 3540e6c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

scripts/cleanup.sh

-18
Original file line numberDiff line numberDiff line change
@@ -85,24 +85,6 @@ INSTANCE_LOG_FILES=(
8585
echo "Cleaning up instance log files"
8686
cleanup "${INSTANCE_LOG_FILES[@]}"
8787

88-
echo "Cleaning TOE files"
89-
if [[ $(sudo find {{workingDirectory}}/TOE_* -type f | sudo wc -l) -gt 0 ]]; then
90-
echo "Deleting files within {{workingDirectory}}/TOE_*"
91-
sudo find {{workingDirectory}}/TOE_* -type f -exec shred -zuf {} \;
92-
fi
93-
if [[ $(sudo find {{workingDirectory}}/TOE_* -type f | sudo wc -l) -gt 0 ]]; then
94-
echo "Failed to delete {{workingDirectory}}/TOE_*"
95-
exit 1
96-
fi
97-
if [[ $(sudo find {{workingDirectory}}/TOE_* -type d | sudo wc -l) -gt 0 ]]; then
98-
echo "Deleting {{workingDirectory}}/TOE_*"
99-
sudo rm -rf {{workingDirectory}}/TOE_*
100-
fi
101-
if [[ $(sudo find {{workingDirectory}}/TOE_* -type d | sudo wc -l) -gt 0 ]]; then
102-
echo "Failed to delete {{workingDirectory}}/TOE_*"
103-
exit 1
104-
fi
105-
10688
echo "Cleaning up ssm log files"
10789
if sudo test -d "/var/log/amazon/ssm"; then
10890
echo "Deleting /var/log/amazon/ssm/*"

0 commit comments

Comments
 (0)