diff options
author | Satoshi Asami <asami@FreeBSD.org> | 2000-08-29 08:17:08 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 2000-08-29 08:17:08 +0000 |
commit | c0a421c34b635f468f03d33faa04ae03cca7f511 (patch) | |
tree | 3192a64058cbe6b6ee3c29d6f99910b6036036b4 /Tools | |
parent | abc8a78dc97e9e223767bd5aec161f0d49e51fbe (diff) |
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.)
Notes
Notes:
svn path=/head/; revision=32083
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/checkmachines | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/checkmachines b/Tools/portbuild/scripts/checkmachines index 127086f7fcc0..c7009c5314ee 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 |