X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=last-heartbeat.sh;fp=last-heartbeat.sh;h=000ae7f5a455f89d6db1c047892c369220cc4f39;hb=ce41896d0aad059de99fa900bde52c59aaeabb54;hp=cd7128aec84acda71fca9dc3b2c86b78d61bf8cf;hpb=5eb661024eed4e5f624b31a2f80111c69f234cd0;p=zc diff --git a/last-heartbeat.sh b/last-heartbeat.sh index cd7128a..000ae7f 100755 --- a/last-heartbeat.sh +++ b/last-heartbeat.sh @@ -1,11 +1,11 @@ -#!/bin/sh -e +#!/bin/sh ls -d queue/*/$( date +%Y-%m-%d ) | while read path ; do last=$( ls -t $path | head -1 ) if [ ! -z "$1" ] ; then imei=$( echo $path | cut -d/ -f2 ) echo -n "$path/$last " - grep $imei subvision-numbers.txt + grep $imei subvision-numbers.txt || echo else echo "$path/$last" fi