From 71b7d062d586ab1ae244fee4e0ca250be8344111 Mon Sep 17 00:00:00 2001 From: sheldonhull Date: Wed, 7 Oct 2020 14:57:25 -0500 Subject: [PATCH 1/3] feat: improve installation script documentation for shell installs - The default didn't work well for me out of the gate. - This is the modified version to support passing in the arguments easily as well as an example for installing to `/usr/local/bin` for using in Codespaces or equivalent development workflow. --- docs/installation.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index da7e55af..c34bd76b 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -73,7 +73,11 @@ scenarios like CIs. Many thanks to [GoDownloader][godownloader] for allowing easily generating this script. ```bash -curl -sL https://taskfile.dev/install.sh | sh +# For Default Installion to ./bin with debug logging +url -sL https://taskfile.dev/install.sh | sh -s -- -d + +# For Installation To /usr/local/bin with debug logging +url -sL https://taskfile.dev/install.sh | sudo sh -s -- -b /usr/local/bin -d ``` > This method will download the binary on the local `./bin` directory by default. From 6c625b3359d6dba867c38f918808f84fbeab0db9 Mon Sep 17 00:00:00 2001 From: sheldonhull Date: Wed, 14 Oct 2020 22:30:19 -0500 Subject: [PATCH 2/3] fix: typo on curl install comment fix from url to curl --- docs/installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index c34bd76b..50ccabc2 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -74,10 +74,10 @@ easily generating this script. ```bash # For Default Installion to ./bin with debug logging -url -sL https://taskfile.dev/install.sh | sh -s -- -d +curl -sL https://taskfile.dev/install.sh | sh -s -- -d # For Installation To /usr/local/bin with debug logging -url -sL https://taskfile.dev/install.sh | sudo sh -s -- -b /usr/local/bin -d +curl -sL https://taskfile.dev/install.sh | sudo sh -s -- -d -b /usr/local/bin ``` > This method will download the binary on the local `./bin` directory by default. From 75727c3d68b88d39b3d33add6370640b4a9f16fe Mon Sep 17 00:00:00 2001 From: sheldonhull Date: Fri, 16 Oct 2020 18:12:26 -0500 Subject: [PATCH 3/3] fix: improve curl command install - works on macOS - works in Linux (tested in docker container) --- docs/installation.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 50ccabc2..076643fd 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -74,10 +74,12 @@ easily generating this script. ```bash # For Default Installion to ./bin with debug logging -curl -sL https://taskfile.dev/install.sh | sh -s -- -d +sh -c "$(curl -ssL https://taskfile.dev/install.sh)" -- -d + +# For Installation To /usr/local/bin for userwide access with debug logging +# May require sudo sh +sh -c "$(curl -ssL https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin -# For Installation To /usr/local/bin with debug logging -curl -sL https://taskfile.dev/install.sh | sudo sh -s -- -d -b /usr/local/bin ``` > This method will download the binary on the local `./bin` directory by default.