# Zrok2-bootstrap.bash parsing of FRONTEND\_TOKEN issue

**URL:** <https://openziti.discourse.group/t/zrok2-bootstrap-bash-parsing-of-frontend-token-issue/6151>\
**Category:** Building/Development\
**Created:** [September 30, 2026, 3:30pm UTC](https://openziti.discourse.group/t/zrok2-bootstrap-bash-parsing-of-frontend-token-issue/6151 "2026-09-30T15:30:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grivanov](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/grivanov/32/4374_2.png) [@grivanov](https://openziti.discourse.group/u/grivanov)\
**Post date:** [September 30, 2026, 3:30pm UTC](https://openziti.discourse.group/t/zrok2-bootstrap-bash-parsing-of-frontend-token-issue/6151/1 "2026-09-30T15:30:35Z")

</div>

I'm writing here as per the GitHub notice.

The `zrok2-bootstrap.bash` has a parsing issue on line 781:

> <https://github.com/openziti/zrok/blob/0c9d346464a7990391d26f35ecf08944c69caf95/nfpm/zrok2-bootstrap.bash#L781>

This parses the output:

```auto
╭────────────────┬────────────┬─────────────┬─────────────────┬─────────┬───────────────────────────────────╮
│ FRONTEND TOKEN │ ZID │ PUBLIC NAME │ PERMISSION MODE │ DYNAMIC │ UPDATED AT │
├────────────────┼────────────┼─────────────┼─────────────────┼─────────┼───────────────────────────────────┤
│ token-redact │ d00000000s │ public │ open │ true │ 2026-09-29 11:09:26.927 +0000 UTC │
╰────────────────┴────────────┴─────────────┴─────────────────┴─────────┴───────────────────────────────────╯

```

but the `awk '/public/ {print $1; exit}'` matches to a `│`. So in my `frontend.yaml` I get: `frontend_token: │` instead of `frontend_token: token-redact`.

This also breaks public sharing.

The correct awk can be either:

`FRONTEND_TOKEN=$(echo "$existing" | sed 's/│/ /g' | awk '/public/ {print $1; exit}')`

or

`FRONTEND_TOKEN=$(echo "$existing" | awk '/public/ {print $2; exit}')`
