Skip to content

Commit 10b495a

Browse files
authored
Merge pull request #122 from wtn/dir
Fix assignment
2 parents 38cb9ae + 7547807 commit 10b495a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/curses.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pdcurses_dll = File.expand_path("../vendor/PDCurses/pdcurses.dll", __dir__)
22
if File.exist?(pdcurses_dll)
33
path = ENV["PATH"]
4-
dir = File::ALT_SEPARATOR ?
5-
File.dirname(pdcurses_dll).tr("/", File::ALT_SEPARATOR) : dir
4+
dir = File.dirname(pdcurses_dll)
5+
dir = dir.tr("/", File::ALT_SEPARATOR) if File::ALT_SEPARATOR
66
dirs = path.split(File::PATH_SEPARATOR)
77
if !dirs.include?(dir)
88
ENV["PATH"] = [dir, *dirs].join(File::PATH_SEPARATOR)

0 commit comments

Comments
 (0)