aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/xmlGenerator/hostDomainGenerator.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xmlGenerator/hostDomainGenerator.sh b/tools/xmlGenerator/hostDomainGenerator.sh
index c618f46..2e10613 100755
--- a/tools/xmlGenerator/hostDomainGenerator.sh
+++ b/tools/xmlGenerator/hostDomainGenerator.sh
@@ -132,7 +132,7 @@ formatConfigFile () {
# Test if socket is currently used
portIsInUse () {
port=$1
- test $(ss -an src :${port} | wc --lines) -gt 1
+ test $(ss -an | grep ":${port}" | wc --lines) -gt 0
}
# The initTestPlatform starts a testPlatform instance with the config file given in argument.