summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/env/start-smb-windows.sh
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/tests/env/start-smb-windows.sh')
-rwxr-xr-xapps/files_external/tests/env/start-smb-windows.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_external/tests/env/start-smb-windows.sh b/apps/files_external/tests/env/start-smb-windows.sh
index 6779cdb2d56..9453b4eb3e7 100755
--- a/apps/files_external/tests/env/start-smb-windows.sh
+++ b/apps/files_external/tests/env/start-smb-windows.sh
@@ -19,8 +19,7 @@ user=smb-test
password=!owncloud123
host=WIN-9GTFAS08C15
-if ! (nc -c -w 1 ${host} 445 </dev/null >&/dev/null \
- || nc -w 1 ${host} 445 </dev/null >&/dev/null); then
+if ! "$thisFolder"/env/wait-for-connection ${host} 445 0; then
echo "[ERROR] Server not reachable" >&2
exit 1
fi