Commit 4616b51
committed
Makefile: remove bashism
"pushd/popd" are not part of POSIX and not supported by dash, the default shell
on Debian and Ubuntu.
This causes the following command to fail:
$ make cli WEBROOT=/nvme/gopath/src/k8s.io/website K8SROOT=/nvme/gopath/src/k8s.io/kubernetes K8SRELEASE=1.23.0-beta.0
sudo rm -f main
sudo rm -rf /nvme/gopath/src/sigs.k8s.io/reference-docs/gen-kubectldocs/generators/includes
sudo rm -rf /nvme/gopath/src/sigs.k8s.io/reference-docs/gen-kubectldocs/generators/build
sudo rm -rf /nvme/gopath/src/sigs.k8s.io/reference-docs/gen-kubectldocs/generators/manifest.json
pushd gen-kubectldocs && go mod download && go run main.go --kubernetes-version v1_23 && popd
/bin/sh: 1: pushd: not found
Changing back to the original directory is unnecessary here because each make
command runs in its own shell.1 parent 0c18683 commit 4616b51
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments