Fix one-liners so they work with user input

This commit is contained in:
Kenneth Benzie 2019-07-05 11:02:49 +01:00
parent 9433857356
commit 72f6c868c8

View File

@ -6,19 +6,19 @@ Bootstrap an OS instance with bare essentials.
To bootstrap a macOS instance: To bootstrap a macOS instance:
``` ```console
$ curl -s https://code.infektor.net/config/bootstrap/raw/master/bootstrap-macOS.sh | sh $ 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:
``` ```console
$ wget https://code.infektor.net/config/bootstrap/raw/master/bootstrap-Debian.sh -O - | sh $ 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: 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 $ 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 Install as a pip package to set SSH keys on any of GitHub, GitLab, BitBucket
Cloud, or Gogs servers: Cloud, or Gogs servers:
``` ```console
pip install git+https://code.infektor.net/config/bootstrap.git $ pip install git+https://code.infektor.net/config/bootstrap.git
python -c 'import bootstrap; bootstrap.set_ssh_keys()' $ python -c 'import bootstrap; bootstrap.set_ssh_keys()'
``` ```