We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04bc7e9 commit 4c43b5bCopy full SHA for 4c43b5b
bin/kubectl
@@ -81,6 +81,8 @@ class App
81
iopath = Pathname.new(io.path)
82
iopath.chmod(0o755)
83
iopath.rename exact_path
84
+ else
85
+ die "Don't know what to do with #{io.inspect}"
86
end
87
88
path.delete if path.symlink?
@@ -96,9 +98,11 @@ class App
96
98
.map { |pth| pth + 'kubectl' })
97
99
.select(&:file?)
100
.select(&:executable?)
- .map(&:realpath)
- .reject { |pth| PROGRAM_NAME == pth }
101
- .first || exit(127)
+ .reject { |pth| PROGRAM_NAME == pth.realpath }
102
+ .first || begin
103
+ STDERR.puts "FATAL: At least one existing version of kubectl must be available."
104
+ exit(127)
105
+ end
106
end.to_s
107
108
0 commit comments