urunc-dev/urunc

Line break when copying commands form the website

Open

#482 创建于 2026年2月13日

在 GitHub 查看
 (13 评论) (0 反应) (0 负责人)Go (151 fork)auto 404
bugdocumentationgood first issue

仓库指标

Star
 (254 star)
PR 合并指标
 (PR 指标待抓取)

描述

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)

贡献者指南