Pas de correction de l'argument

This commit is contained in:
Maniack Crudelis 2017-01-23 15:18:52 +01:00 committed by GitHub
parent cd93427a97
commit 901e3df9b6

View file

@ -5,7 +5,7 @@
# usage: ynh_find_port begin_port
# | arg: begin_port - port to start to search
ynh_find_port () {
port=$(echo "$1" | sed 's/[^0-9]//g') # Eliminate all non-digit characters
port=$1
test -n "$port" || ynh_die "The argument of ynh_find_port must be a valid port."
while netcat -z 127.0.0.1 $port # Check if the port is free
do