Commit d98b37a1 authored by Luca Bigliardi's avatar Luca Bigliardi Committed by Guido Trotter
Browse files

ethers hook lock: use logger not echo



Overwrite debugging 'echo's
Signed-off-by: default avatarLuca Bigliardi <shammash@google.com>
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 1db0b7cf
......@@ -51,10 +51,10 @@ acquire_lockfile() {
while ! ( set -o noclobber; echo "$$" > $LOCKFILE) 2> /dev/null ; do
NOW=$(date +%s)
if [ $NOW -ge $TIMEOUT ]; then
echo "Cannot acquire lockfile for ethers update, giving up"
logger -s "Cannot acquire lockfile for ethers update, giving up"
exit 1
fi
echo "Cannot acquire lockfile for ethers update, waiting"
logger -s "Cannot acquire lockfile for ethers update, waiting"
sleep $LOCKSLEEP
done
trap "rm -f $LOCKFILE" EXIT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment