diff options
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r-- | yarns/900-implements.yarn | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index 3aed634..2931361 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -43,7 +43,6 @@ be, and changing there when running various commands. fi IMPLEMENTS WHEN user attempts to run distix show \$PREFIX -b # Yarn sets $HOME to point at an empty temporary directory. # Set up a simple git config so tests can use git. git config --global user.email 'Tomjon <tomjon@example.com>' @@ -67,7 +66,7 @@ b "$SRCDIR/distix" --no-default-config --quiet \ --log "$DATADIR/distix.log" list | - awk '{ print $1 }' > "$DATADIR/tickets.list" + awk '/^ / { print $2 }' > "$DATADIR/tickets.list" cat "$DATADIR/tickets.list" | while read ticket @@ -109,7 +108,7 @@ distix. IMPLEMENTS THEN first ticket id is captured as \$TID # We assume previous command run was distix list. # Each line starts with a full ticket id. - head -n1 "$DATADIR/attempt.stdout" | awk '{print $1}' \ + awk 'NR == 2 { print $2; exit }' "$DATADIR/attempt.stdout" \ > "$DATADIR/ticket-id-1" IMPLEMENTS THEN attempt failed |