diff --git a/setup/so-functions b/setup/so-functions index 5f98e685e..144a75160 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1525,7 +1525,7 @@ reinstall_init() { if command -v docker &> /dev/null; then # Stop and remove all so-* containers so files can be changed with more safety - if [ $(docker ps -a -q --filter "name=so-") -gt 0 ]; then + if [ $(docker ps -a -q --filter "name=so-" | wc -l) -gt 0 ]; then docker stop $(docker ps -a -q --filter "name=so-") docker rm -f $(docker ps -a -q --filter "name=so-") fi