Skip to content

Commit 2062b54

Browse files
Pass surrounding environments PATH to local minio version command
1 parent 9b75ab1 commit 2062b54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/check-minio-update.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_latest_version(checkurl, platform)
7373
end
7474

7575
def get_local_version
76-
stdout, stderr, status = Open3.capture3([{'PATH' => '/usr/local/bin:/usr/bin:/bin'}, 'minio --version', :unsetenv_others => true])
76+
stdout, stderr, status = Open3.capture3([{'PATH' => ENV['PATH']}, 'minio --version', :unsetenv_others => true])
7777

7878
raise IOError, "Unable to gather local minio version: #{stderr}" unless status.success?
7979

0 commit comments

Comments
 (0)