aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/env.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/env.org')
-rw-r--r--org/env.org6
1 files changed, 3 insertions, 3 deletions
diff --git a/org/env.org b/org/env.org
index 87feb912..99e127ae 100644
--- a/org/env.org
+++ b/org/env.org
@@ -5943,10 +5943,10 @@ WOK
: "#{md.opt.sisu_data_dir?}/sisu/image"
images=%W[bullet_09.png arrow_next_red.png arrow_prev_red.png arrow_up_red.png]
images.each do |i| #move to avoid repeated tests
- if FileTest.file?("#{src}/#{i}")
+ if Pathname#exist?("#{src}/#{i}")
FileUtils::cp("#{src}/#{i}","#{pth}/#{i}") \
- unless FileTest.file?("#{pth}/#{i}")
- else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}]}
+ unless Pathname#exist?("#{pth}/#{i}")
+ else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}] [#{src}/#{i}]}
end
end
pth