diff --git a/Tools/portbuild/scripts/showrunning b/Tools/portbuild/scripts/showrunning index 43753ab03d29..57c947573b3f 100755 --- a/Tools/portbuild/scripts/showrunning +++ b/Tools/portbuild/scripts/showrunning @@ -7,5 +7,5 @@ ps axww | \ grep "/var/portbuild/scripts/pdispatch" | \ grep -v "grep /var/portbuild/scripts/pdispatch" | \ - sed -e "s@.*pdispatch @@;s@/var/portbuild/scripts/portbuild .*/usr/ports/@@;s/ /-/" | \ + sed -e "s@.*pdispatch @@;s@/var/portbuild/scripts/portbuild .*/usr/ports/@@;s@^ @@g;s@ @-@" | \ sort