Skip to content

fix: improve UX of post-install group instructions - #3297

Open
skoll43 wants to merge 1 commit into
srl-labs:mainfrom
skoll43:patch-1
Open

fix: improve UX of post-install group instructions#3297
skoll43 wants to merge 1 commit into
srl-labs:mainfrom
skoll43:patch-1

Conversation

@skoll43

@skoll43 skoll43 commented Jul 30, 2026

Copy link
Copy Markdown

Replaced the hardcoded placeholder with an escaped $USER variable. This allows the output command to be directly copy-pasted into the terminal without manual editing.

What does this PR do?
This PR improves the quality-of-life for the post-install instruction by replacing the hardcoded <insert your username here> placeholder with the $USER environment variable.

Why is this needed?
Currently, users are prompted with:
sudo usermod -aG clab_admins <insert your username here> && newgrp clab_admins
This requires the user to manually backspace and type their username before executing.

By changing the output to:
sudo usermod -aG clab_admins $USER && newgrp clab_admins
The user can simply copy and paste the string into their terminal. Their local shell will seamlessly evaluate $USER to their active account.

Note: The variable is escaped as \$USER in the echo statement so it prints the literal string rather than evaluating to root during the sudo installation process.

Replaced the hardcoded <insert your username here> placeholder with an escaped \$USER variable. This allows the output command to be directly copy-pasted into the terminal without manual editing.
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