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.)
This commit is contained in:
parent
abc8a78dc9
commit
c0a421c34b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32083
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue