aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2000-08-29 16:17:08 +0800
committerasami <asami@FreeBSD.org>2000-08-29 16:17:08 +0800
commit2687c711b1c2d583d00b28d7367e0e3aed6d8209 (patch)
treeb9c2d7f067be9c7656c983bcb7ad1f236a2dc648
parent0480e8c62fbc6881cf40e45c74c3af227c6d9298 (diff)
downloadfreebsd-ports-graphics-2687c711b1c2d583d00b28d7367e0e3aed6d8209.tar.gz
freebsd-ports-graphics-2687c711b1c2d583d00b28d7367e0e3aed6d8209.tar.zst
freebsd-ports-graphics-2687c711b1c2d583d00b28d7367e0e3aed6d8209.zip
Ignore empty loads files -- it seems scp in OpenSSH sometimes leaves
files empty even if the original target and the new source are both non-empty. (Old ssh1 never did that, but whether this is a bug is not obvious.)
-rwxr-xr-xTools/portbuild/scripts/checkmachines6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/checkmachines b/Tools/portbuild/scripts/checkmachines
index 127086f7fcc..c7009c5314e 100755
--- a/Tools/portbuild/scripts/checkmachines
+++ b/Tools/portbuild/scripts/checkmachines
@@ -16,7 +16,11 @@ while true; do
l=$2
if [ -f ${buildroot}/loads/$m -a \
! -z "$(find ${buildroot}/loads/$m -newer ${stamp})" ]; then
- num=$(cat ${buildroot}/loads/$m)
+ num=$(awk '{print $1}' ${buildroot}/loads/$m)
+ if [ "x$num" = "x" ]; then
+ logger "checkmachines: file ${buildroot}/loads/$m is empty"
+ num=99
+ fi
else
num=99
fi