From 72f6c868c8334406e6371ad74666c4597a627b0c Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 5 Jul 2019 11:02:49 +0100 Subject: [PATCH] Fix one-liners so they work with user input --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cb0517e..86decb3 100644 --- a/README.md +++ b/README.md @@ -6,19 +6,19 @@ Bootstrap an OS instance with bare essentials. To bootstrap a macOS instance: -``` -$ curl -s https://code.infektor.net/config/bootstrap/raw/master/bootstrap-macOS.sh | sh +```console +$ curl -O https://code.infektor.net/config/bootstrap/raw/master/bootstrap-macOS.sh && chmod +x bootstrap-macOS.sh && ./bootstrap-macOS.sh ``` -To bootstrap a Debain based Linux instance: +To bootstrap a Debian based Linux instance: -``` -$ wget https://code.infektor.net/config/bootstrap/raw/master/bootstrap-Debian.sh -O - | sh +```console +$ wget https://code.infektor.net/config/bootstrap/raw/master/bootstrap-Debian.sh && chmod +x bootstrap-Debian.sh && ./bootstrap-Debian.sh ``` To bootstrap a Windows instance: -``` +```console $ bitsadmin /transfer bootstrap-Windows.cmd https://code.infektor.net/config/bootstrap/raw/master/bootstrap-Windows.cmd %cd%\bootstrap-Windows.cmd & %cd%\bootstrap-Windows.cmd ``` @@ -27,7 +27,7 @@ $ bitsadmin /transfer bootstrap-Windows.cmd https://code.infektor.net/config/boo Install as a pip package to set SSH keys on any of GitHub, GitLab, BitBucket Cloud, or Gogs servers: -``` -pip install git+https://code.infektor.net/config/bootstrap.git -python -c 'import bootstrap; bootstrap.set_ssh_keys()' +```console +$ pip install git+https://code.infektor.net/config/bootstrap.git +$ python -c 'import bootstrap; bootstrap.set_ssh_keys()' ```