We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 38cb9ae + 7547807 commit 10b495aCopy full SHA for 10b495a
1 file changed
lib/curses.rb
@@ -1,8 +1,8 @@
1
pdcurses_dll = File.expand_path("../vendor/PDCurses/pdcurses.dll", __dir__)
2
if File.exist?(pdcurses_dll)
3
path = ENV["PATH"]
4
- dir = File::ALT_SEPARATOR ?
5
- File.dirname(pdcurses_dll).tr("/", File::ALT_SEPARATOR) : dir
+ dir = File.dirname(pdcurses_dll)
+ dir = dir.tr("/", File::ALT_SEPARATOR) if File::ALT_SEPARATOR
6
dirs = path.split(File::PATH_SEPARATOR)
7
if !dirs.include?(dir)
8
ENV["PATH"] = [dir, *dirs].join(File::PATH_SEPARATOR)
0 commit comments