projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc5c3d
)
show last job running instead of first one
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 20 Apr 2019 13:29:06 +0000
(15:29 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 20 Apr 2019 13:29:06 +0000
(15:29 +0200)
gnt-running.sh
patch
|
blob
|
history
diff --git
a/gnt-running.sh
b/gnt-running.sh
index
97e51d6
..
8821685
100755
(executable)
--- 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