Skip to content

Commit 6643fbd

Browse files
authored
docs: fix piped sh usage (#929)
Signed-off-by: Bala.FA <bala@minio.io>
1 parent 146db7b commit 6643fbd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ $ kubectl directpv install --openshift
9191
#### Installing by generating DirectPV manifests
9292
To install using generated manifests file, run below command
9393
```sh
94-
$ curl -sfL https://github.com/minio/directpv/raw/master/docs/tools/install.sh | sh - apply
94+
$ curl -sfL https://github.com/minio/directpv/raw/master/docs/tools/install.sh | sh -s - apply
9595
```
9696

9797
## What's next

docs/tools/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function check_directcsi_consistency() {
113113
}
114114

115115
function is_psp_found() {
116-
kubectl get --ignore-not-found=true psp directpv-min-io --no-headers -o NAME | grep -q .
116+
kubectl get --ignore-not-found=true psp directpv-min-io --no-headers -o NAME 2>/dev/null | grep -q .
117117
}
118118

119119
function init() {

docs/upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Follow the below steps for an in-place upgrade
1818
1. Upgrade DirectPV plugin by [this documentation](#upgrade-directpv-plugin).
1919
2. Run install script with appropriate node-selector, tolerations, and `KUBELET_DIR_PATH` environment variable. Below is an example:
2020
```sh
21-
$ curl -sfL https://github.com/minio/directpv/raw/master/docs/tools/install.sh | sh - apply
21+
$ curl -sfL https://github.com/minio/directpv/raw/master/docs/tools/install.sh | sh -s - apply
2222
```
2323

2424
### Upgrade legacy DirectCSI CSI driver

0 commit comments

Comments
 (0)