mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Pas de correction de l'argument
This commit is contained in:
parent
cd93427a97
commit
901e3df9b6
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
# usage: ynh_find_port begin_port
|
# usage: ynh_find_port begin_port
|
||||||
# | arg: begin_port - port to start to search
|
# | arg: begin_port - port to start to search
|
||||||
ynh_find_port () {
|
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."
|
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
|
while netcat -z 127.0.0.1 $port # Check if the port is free
|
||||||
do
|
do
|
||||||
|
|
Loading…
Add table
Reference in a new issue