diff options
author | kris <kris@FreeBSD.org> | 2004-10-25 12:29:06 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-10-25 12:29:06 +0800 |
commit | 685046bfcaf9f2d305e04f49566b176ce99f163b (patch) | |
tree | 67d10aeb1b7dec056ac586c44b135cd8ae765e5b | |
parent | f42341260383759fdaab0fae409315168c6fb86b (diff) | |
download | freebsd-ports-gnome-685046bfcaf9f2d305e04f49566b176ce99f163b.tar.gz freebsd-ports-gnome-685046bfcaf9f2d305e04f49566b176ce99f163b.tar.zst freebsd-ports-gnome-685046bfcaf9f2d305e04f49566b176ce99f163b.zip |
Use the absolute path to nc(1) to deal with it not being in the PATH.
Remove useless sleep(1).
-rwxr-xr-x | Tools/portbuild/scripts/checkmachines | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/checkmachines b/Tools/portbuild/scripts/checkmachines index 8ec988a8631e..7f32bac93128 100755 --- a/Tools/portbuild/scripts/checkmachines +++ b/Tools/portbuild/scripts/checkmachines @@ -20,8 +20,6 @@ buildroot=/var/portbuild arches=$* -sleep 60 - while true; do for i in ${arches}; do mlist=${buildroot}/${i}/mlist @@ -33,7 +31,7 @@ while true; do while [ $# -gt 1 ]; do m=$1 l=$2 - if (nc -w 5 $m infoseek > ${buildroot}/${i}/loads/$m < /dev/null); then + if (/usr/local/bin/nc -w 5 $m infoseek > ${buildroot}/${i}/loads/$m < /dev/null); then num=$(awk '{print $1}' ${buildroot}/${i}/loads/$m) if [ "x$num" = "x" ]; then # logger "checkmachines: file ${buildroot}/${i}/loads/$m is empty" |