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)
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:
but it should be