Skip to content

Commit

Permalink
Bug fix: Only call ws destroy if .my127ws exists (#743)
Browse files Browse the repository at this point in the history
Co-authored-by: andytson-inviqa <andytson-inviqa@users.noreply.github.com>
  • Loading branch information
g-foster2020 and andytson-inviqa authored Feb 15, 2023
1 parent 89db543 commit f9f010d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,10 @@ function teardown()

function clean()
{
if [ -d "$path_test" ]; then
(cd "$path_test" && ws destroy) || (docker ps -a && return 1)
if [ -d "$path_test" ]; then
if [ -d "${path_test}/.my127ws" ]; then
(cd "$path_test" && ws destroy) || (docker ps -a && return 1)
fi
rm -rf "$path_test"
fi
}
Expand Down

0 comments on commit f9f010d

Please sign in to comment.