summaryrefslogtreecommitdiff
path: root/sample/trojan.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/trojan.rb')
-rw-r--r--sample/trojan.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/sample/trojan.rb b/sample/trojan.rb
index edf8ee6..6e9b18f 100644
--- a/sample/trojan.rb
+++ b/sample/trojan.rb
@@ -1,5 +1,6 @@
#! /usr/local/bin/ruby
-path = ENV['PATH'].split(/:/)
+
+path = ENV['PATH'].split(File::PATH_SEPARATOR)
for dir in path
if File.directory?(dir)