Skip to content

Commit b4a04dd

Browse files
committed
fix(arc): update token grep pattern for Arc v26.04.1+
Arc renamed the banner label from 'Initial admin API token:' to 'Admin API token:' in v26.04.1. Update the pattern to match both old and new formats for backwards compatibility.
1 parent 9153ea0 commit b4a04dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arc/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fi
9393

9494
# If no valid token yet, try to extract from logs (first run scenario)
9595
if [ -z "$ARC_TOKEN" ]; then
96-
ARC_TOKEN=$(sudo journalctl -u arc --no-pager | grep -oP 'Initial admin API token: \K[^\s]+' | head -1)
96+
ARC_TOKEN=$(sudo journalctl -u arc --no-pager | grep -oP '(?:Initial admin API token|Admin API token): \K[^\s]+' | head -1)
9797
if [ -n "$ARC_TOKEN" ]; then
9898
echo "[OK] Captured new token from logs"
9999
echo "$ARC_TOKEN" > arc_token.txt

0 commit comments

Comments
 (0)