Skip to content

Commit

Permalink
Better regex for terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Aug 15, 2023
1 parent bfe3d3f commit 2eac6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethd
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ terminate() {
stop
# In this case I want the word splitting, so rm can remove all volumes
# shellcheck disable=SC2046
dodocker volume rm $(dodocker volume ls -q -f "name=$(basename "$(realpath .)")_.+")
dodocker volume rm $(dodocker volume ls -q -f "name=^$(basename "$(realpath .)")_.+")
echo ""
echo "All containers stopped and all volumes deleted"
echo ""
Expand Down

0 comments on commit 2eac6b1

Please sign in to comment.