no additional info for unknown devices
[zc] / last-heartbeat.sh
index cd7128a..000ae7f 100755 (executable)
@@ -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