Skip to content

Conversation

@iiSeymour
Copy link

  • the --branch flag gets parsed out by grep so removed it.
  • symbols don't get interpreted in regex character classes so removed the literal backslash to avoid matching \.
  • apply the awk script to the first line only with NR==1 which removes the need for head
  • make use or the ternary operator so only a single block is needed (and use string comparison over regex) .

 - the `--branch` flag gets parsed out by `grep` so removed it.
 - symbols don't get interpreted in regex character classes so removed the literal backslash to avoid matching `\`. 
 - apply the `awk` script to the first line only with `NR==1` which removes the need for `head`
 - make use or the ternary operator so only a single block is needed *(and use string comparison over regex)* .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant