X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gnt-running.sh;h=88216851cc1b63d35f9f1b033eca3003de0655f9;hb=6ae132b03f6ba35fe7e54446958f19df33058f4a;hp=97e51d689da8f5ecff5d0e9f8550ea46ef6d5ace;hpb=9bd644636297cc4d378d136399ce86ea423a7634;p=gnt-info diff --git a/gnt-running.sh b/gnt-running.sh index 97e51d6..8821685 100755 --- a/gnt-running.sh +++ b/gnt-running.sh @@ -1,6 +1,6 @@ #!/bin/sh -e while true ; do - JOBID=`gnt-job list --no-headers --running | tee /dev/stderr | awk '{ print $1; exit }'` + JOBID=`gnt-job list --no-headers --running | tee /dev/stderr | tail -1 | awk '{ print $1; exit }'` if [ -n "$JOBID" ] then gnt-job watch $JOBID || true # don't exit on failed jobs