29fb617e6b6b18fc7bdfef74fc57bbdf0e2fe52b

Author
Mark Coleman <MEHColeman@users.noreply.github.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

readme: document oneliner unattended installation command (#7983)

The original suggestion for an unattended install downloads the installation script to a file, then runs that file with the --unattended argument. The install.sh file would be left behind after the suggested command was run.
This change passes the --unattended argument directly into sh. So, it's a nice one-liner like the default installation script, and it doesn't leave a dangling install.sh script.

Diff

 1diff --git a/README.md b/README.md
 2index 43dcdd3a24fd73774de2397b0d61361e04fc431b..78a5b56bda1f5244d6a156f57d3679d41eb8bcff 100644
 3--- a/README.md
 4+++ b/README.md
 5@@ -159,8 +159,7 @@ flag `--unattended` to the `install.sh` script. This will have the effect of not
 6 the default shell, and also won't run `zsh` when the installation has finished.
 7 
 8 ```shell
 9-curl -Lo install.sh https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
10-sh install.sh --unattended
11+sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" "" --unattended
12 ```
13 
14 #### Installing from a forked repository