Commit 6c5ae56
change bash shebangs to be more portable
When running kubectl-neat tests on a nixos system, I was getting test
failures like the following:
```
--- FAIL: TestGetCmd (0.00s)
cmd_test.go:186: error assertion: have: &errors.errorString{s:"Error invoking kubectl as [../test/kubectl-stub get -o json pods] fork/exec ../test/kubectl-stub:
no such file or directory"}
test case: {[pods] 0x1021740 apiVersion }
```
And running the script directly:
```
$ ./test/kubectl-stub
zsh: ./test/kubectl-stub: bad interpreter: /bin/bash: no such file or directory
```
This PR changes the shebang to `#!/usr/bin/env bash` to make the tests
more portable across systems. I changed the other bash shebangs for good
measure.1 parent 4c647f3 commit 6c5ae56
File tree
3 files changed
+3
-3
lines changed- hack
- test
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments