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)

貢獻者指南