urunc-dev/urunc

Line break when copying commands form the website

Open

#482 ouverte le 13 févr. 2026

Voir sur GitHub
 (13 commentaires) (0 réactions) (0 assignés)Go (151 forks)auto 404
bugdocumentationgood first issue

Métriques du dépôt

Stars
 (254 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

In some cases the commands we copy from the documentation contain a line break right after the first word. As an example, we can take a look the snippet to install the latest version of runc in the installation guide (See https://urunc.io/installation/#install-runc-or-any-other-generic-low-level-container-runtime).. Copying directly the snippet returns the following:

RUNC_VERSION=$(curl -L -s -o /dev/null -w '%{url_effective}' "https://github.com/opencontainers/runc/releases/latest" | grep -oP "v\d+\.\d+\.\d+" | sed 's/v//')
wget
 -q https://github.com/opencontainers/runc/releases/download/v$RUNC_VERSION/runc.$(dpkg --print-architecture)
sudo
 install -m 755 runc.$(dpkg --print-architecture) /usr/local/sbin/runc
rm
 -f ./runc.$(dpkg --print-architecture)

but it should be

RUNC_VERSION=$(curl -L -s -o /dev/null -w '%{url_effective}' "https://github.com/opencontainers/runc/releases/latest" | grep -oP "v\d+\.\d+\.\d+" | sed 's/v//')
wget -q https://github.com/opencontainers/runc/releases/download/v$RUNC_VERSION/runc.$(dpkg --print-architecture)
sudo  install -m 755 runc.$(dpkg --print-architecture) /usr/local/sbin/runc
rm  -f ./runc.$(dpkg --print-architecture)

Guide contributeur